Inheritance
Major Concepts
After completing this chapter, you should be able to do the following:
- Understand what inheritance is and how programmers can use it.
- Understand what abstract classes and methods are.
- 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.
Inheritance
- Inheritance
- Subtyping
Inheritance in C#
- Extends
- Subclass
- Derived class
- Child class
- Superclass
- Base class
- Parent class
A Tale of Two Cats
base
- no-argument constructor
- no-arg constructor
override
- method overriding
Inheriting from Abstraction
- Abstraction
abstract
- Abstract class
- Abstract method
Casting
- Runtime exception
- Polymorphism
Class Diagrams
- Class diagrams
- One-to-One Relationship
- One-to-Many Relationship