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

The Need for Inheritance

The Greek philosopher Aristotle was the first well-known taxonomist in that he began to categorize the objects that surrounded him. When taxonomists categorize part of the world, they create hierarchies of categories that move from the general to the specific.

Note

When working with inheritance, it is useful to view the world through the glasses of a taxonomist.

For example, by using this approach, we can divide transportation vehicles into three broad categories: surface, airborne, and water vehicles, as shown in Figure 16.1; and when moving down the hierarchy, the categories become more specialized.

Figure 16.1. Specialization/generalization ...

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