next up previous
Next: Original version Up: Style examples Previous: Final version (The Role

Vehicles and Garages

In the hardware store example, we examined the class relationships, and the difference between variability in behaviour and value. In that example, not all the inheritance relationships was verified.

In the following example inheritance relationships are "natural", and public inheritance is appropriate. However, the decision to use public inheritance raises other questions with respect to the detailed distribution of the and function members of the classes in the inheritance hierarchy.



Subsections

Porkoláb Zoltán 2001-09-03