Figure 12.1: The simple shape taxonomy. Inheritance builds a hierarchy by allowing us to specify a relationship between a parent and child class. In the relationship, a child class is said to inherit ...
There is another common form of inheritance, very different from parent child inheritance, called composition. [*] Using an object in composition is easy. All you have to do is assign an object as the ...