Objects
What are they?
An object is a specific instance of a class.
Object creation
Bubbles and Rocky are objects, they have state as defined in the brackets, which can be used by the methods/behaviour.
Now we have instances of the class, we can use their methods.
We can ask bubbles and rocky to run, and they will get the message (ie method) and perform that behaviour (run that method)
Pass by reference
links
Object equality
Last updated