Figure 8.6: Containment hierarchy for bicycle-design database.
Fig. 8.6 shows the containment relationship in a schematic way by listing class names. Thus the links between classes must be interpreted as is-part-of, rather than the is-a interpretation of links in an inheritance hierarchy.
The containment hierarchy is used to find all objects contained in a bicycle object.