1.1 Object Oriented Programming
| 1. |
Everywhere you look in the real world you see objects such as people, animals, plants, cars, buildings and |
| 2. |
These objects have some things in common. |
|
a. |
They all have attributes (e.g. size, shape, color and weight). |
|
b. |
They all have behavior (e.g. people walk and eat, cars accelerate, brake and turn). |
| 3. |
We can learn objects by studying their attributes and observing their behavior. |
| 4. |
Different objects can have similar attributes and can have similar behavior. |
| 5. |
Object orientation views the real world as objects with some things in common. They all have attributes |
| 6. |
There is a close match between objects in the programming sense and objects in the real world. |
| 7. |
When approaching a programming problem in an object-oriented language, we try to divide the problem |
| 8. |
Thinking in terms of object rather than functions has a helpful effect on how easily we can design |