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

Summary

This chapter discussed basic inheritance concepts and how these are implemented in C#. The following are some of the important points that were covered.

Aggregation implements has a relationship, inheritance implements is a relationship.

Class hierarchies are formed after the same principles as those used by taxonomists. They move from the topmost general categories to the lowermost specialized categories.

Through inheritance, class members in general classes can be reused in specialized classes. Without inheritance, we have two options for creating objects that have unique as well as common class members. Write one class from which all the individual objects are instantiated, or write one class for each distinguishable type of objects. ...

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