O'Reilly logo

C# Primer Plus by Klaus Michelsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Multiple inheritance

Multiple inheritance allows a class to have more than one base class. For example a particular kind of car may be a jeep and a family car at the same time as illustrated in Figure 17.5. The FamilyCarJeep is thus derived from the FamilyCar as well as the Jeep.

Figure 17.5. An example of multiple inheritance

Even though multiple inheritance is a powerful concept, which is supported by languages like C++ and Eiffel it also involves several subtleties that can make its implementation tricky.

NOTE

Multiple inheritance is a heavily ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required