6. Inheritance

THE LAST CHAPTER DISCUSSED association relationships, how one class can reference another class or set of classes using fields or properties. This chapter looks at another relationship between classes, that of inheritance and building a class hierarchy.

image

Beginner Topic: Inheritance Definitions

The previous chapter provided an overview of inheritance. Here’s a review of the defined terms.

Derive/inherit: Specialize a base class to include additional members or customization of the base class members.

Derived/sub/child type: The specialized type that inherits the members of the more general type.

Base/super/parent type: The ...

Get Essential C# 2.0 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.