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 ...
Both families of simple equipment models and systems employ the notions of hierarchy and inheritance. These hierarchies can be represented as trees, with the simpler models serving as building blocks ...
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 ...
Classes are created in hierarchies, and inheritance allows the structure and methods in one class to be passed down the hierarchy. That means less programming is required when adding functions to ...