Defining Object Model
In order to create a model (class) for an object, we must define its 2 major components:
- Attributes or State (variables)
- Behavior (Methods/Functions)
Attributes or State
Current characteristics of the specified. These attributes may change over time.
Behavior
- possible actions of the object is able to do.
- actions to change it’s own or other’s state
- actions to tell it’s own state
- actions to do both
Anthropomorphic
- Each object is smart or expert enough for its own task
- needs commands from another object to perform their expertise
Abstraction
- “black box”
- specific details are hidden and only general details are visible