October 2001
Intermediate to advanced
640 pages
18h 58m
English
At the heart of the concept of inheritance is the is-a relationship. Viewed in one way, the is-a relationship is a form of classification. For example, a TextWindow can be classified as a type of Window, and therefore it makes sense that the class TextWindow can be created by inheritance from class Window. Expressed another way, the category TextWindow is a subset of the more general category Window.
However, when we look at classifications of objects in the real world, they seldom fit the simple single parent hierarchies we have been constructing. This is because real world objects are almost always classified ...
Read now
Unlock full access