Chapter 7: Inheritance

Major Concepts

After completing this chapter, you should be able to do the following:

  1. Understand what inheritance is and how programmers can use it.
  2. Understand what abstract classes and methods are.
  3. Learn how to formally diagram classes and the relationships between classes.

Key Terminology

As you read through this chapter, look for the following key words.


  1. Inheritance
  2. Subtyping

Inheritance in C#

  1. Extends
  2. Subclass
  3. Derived class
  4. Child class
  5. Superclass
  6. Base class
  7. Parent class

A Tale of Two Cats

  1. base
  2. no-argument constructor
  3. no-arg constructor
  4. override
  5. method overriding

Inheriting from Abstraction

  1. Abstraction
  2. abstract
  3. Abstract class
  4. Abstract method


  1. Runtime exception
  2. Polymorphism

Class Diagrams

  1. Class diagrams
  2. One-to-One Relationship
  3. One-to-Many Relationship

Table of Contents