1.2.1 Objects and Classes
1.2.1 Objects and Classes
Architecture, and
Engineering
Objects and classes
Bertrand Meyer
sit.org © Schaffhausen Institute of Technology
Objects and classes
An object is a software machine allowing program
elements to access and modify a collection of data
Examples:
The class of all cities
The class of all buttons
2
Definition: class
Class
5
What is an object?
Software notion: machine known through operations applicable to it.
Three kinds of object:
“Physical objects”: reflect material objects of the modeled world or
system
Examples: the Louvre, Paris, a metro car..
“Abstract objects”: describe abstract notions from modeled world or
system
Examples: a line, a route...
“Software objects”: represent pure software notions
7
What we have seen in 1.2.1: