previous
|
start
|
next
Relationships between Classes
Inheritance, although useful, can be over-used.
Should a class
Tire
be derived from a
Circle
class?
Conceptually, the arrangement does not make sense.
A tire
has a
circle as it's boundary.
class Tire { ... private: string rating; Circle boundary; };
The term for this relationship is association.
previous
|
start
|
next