October 1997
Intermediate to advanced
800 pages
20h 48m
English
Multiple inheritance allows a class to inherit from more than one base. It is significantly more complicated than single inheritance with respect to syntax, design, and compiler implementation. Multiple inheritance also increases overhead and produces potential ambiguities. Furthermore, designs with multiply-derived classes tend to produce more classes than designs with single inheritance. Even so, multiple inheritance can simplify programs and provide solutions to difficult problems.
This chapter explores multiple inheritance and how to use it in program designs. We have broken the presentation of multiple inheritance into three distinct patterns. Each pattern, or hierarchical structure, has unique characteristics, ...