Classes and objects
class: type of object, a classification
object: instance of a class
- eg. Escort, Taurus, Mustang; Dog, Cat, Rabbit
Object has:
- state
- information that identifies it / describes it
- stored in fields (variables)
- behaviour
- actions object can perform
- defined as methods (functions or procedures)
- Objects send and receive messages (make function calls)