Please enable JavaScript.
Coggle requires JavaScript to display documents.
OOP ((Class, A ‘blueprint’ for creating objects., Object, An instance of a…
OOP
-
-
-
-
-
The use of access modifiers (eg public/private) to protect data from unintended access and modification.
-
-
-
An attribute is a variable that belongs to an object. They are defined in the class. Each new object has its own copy of the attributes.
-
A method that is called when a new object is created. It is used to initialise the data for an object.
-
-
-
An access modifier. Code in a different class can not call private methods or access private attributes.
-
-
-
-
getPosition(), getColour(), setPosition(), setColour()
-