5.3. A Few Words About Multiple Inheritance

So far, the inheritance hierarchies we looked at are known informally as "single inheritance" hierarchies because any particular class in the hierarchy may only have a single direct base class (immediate ancestor). In the hierarchy shown in Figure 5-8, for example, classes marked B, C, and I all have the single direct base class A; D, E, and F have the single direct base B; and G and H have the single direct base E.

Figure 5.8. A sample single inheritance hierarchy

If we for some reason find ourselves needing to meld together the characteristics of two different base classes to create a hybrid third ...

Get Beginning C# 2008 Objects: From Concept to Code now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.