modelling the world with objects
idea
- a good way to structure a program is to mirror the structure of the “real world”
- first model the real world, then translate into object oriented program
elements
- an object is some entity that has an identity
examples: a person, a car, a segment of a road, a file
non-examples: an integer, the weather, a friendship, an airline flight
- a class is a collection of similar objects
examples: Person, the class of all persons; Car, the class of all cars