Please enable JavaScript.
Coggle requires JavaScript to display documents.
CS2 - Objects and Classes, private, b.deposit(100), Instances, Inheritance…
CS2 - Objects and Classes
Classes
change classes but not the interfaces
blueprint, prototype
static (Class) fields
belongs to the class not to any object of the class
for communication between objects of the same class
instance fields
cannot be used from...
Methods
Mutator method
Access methods
void methods
change the state of the object
static method
no operation on methods
too many methods -> too little OO
Object
Constructors
"new" operator creates an object of an class
has to have the same name as the class
Multiple Object Variables
private
encapsulation
b.deposit(100)
b = null
reference is deleted
Instances
Inheritance
Commenting the Public Interface