- Every object has a status or (state / fields / attributes / data)
- Every object has a behavior (behavior / method / function / procedure)
- Example: object bicycle
- Having a state: speed, engine rpm, gear position, color, the number of wheels.
- Having a behavior: speed (accelerate), slow rate (break), moving gear, changing colors

Tidak ada komentar:
Posting Komentar