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

Chapter 16. INHERITANCE PART I: BASIC CONCEPTS

You will learn about the following in this chapter:

  • The connection between taxonomical type hierarchies and object-oriented class hierarchies

  • Why inheritance is advantageous when implementing classes that naturally fit into a class hierarchy

  • The syntax needed for implementing a class hierarchy in C# and, in particular, how to derive a class from a base class

  • Virtual functions

  • The difference between overriding a method (using the override keyword) and re-implementing a new method (using the new keyword)

  • How access modifiers and class hierarchies interact

  • How to preserve the rules of encapsulation while implementing inheritance

  • The protected and internal protected access modifiers

  • Constructors and inheritance ...

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