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.