http://ecomputernotes.com
Object-Orientation (OO)
http://ecomputernotes.com
What is Object-Orientation?
A
OO
http://ecomputernotes.com
What is a Model?
A
Purpose
http://ecomputernotes.com
Examples Model
Highway
maps models
Architectural Mechanical
models
http://ecomputernotes.com
Example OO Model
http://ecomputernotes.com
Example OO Model
Objects
Smith
drives
lives-in
House
Car
Tree
Object-Orientation - Advantages
People OO
Therefore,
What is an Object?
An object is
Something Something
http://ecomputernotes.com
What is an Object?
An object has
State
http://ecomputernotes.com
(attributes)
Name Age
behaviour
(operations)
Walks Eats
Identity
His name
http://ecomputernotes.com
(attributes)
- Color - Model
behaviour
(operations)
- Start Car
(attributes)
- Seconds
- Hours - Minutes
behaviour
(operations)
- Set Seconds
(attributes)
- Day
- Year - Month
behaviour
(operations)
- Set Day