Chapter 7: Inheritance
Learning Objectives
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 the chapter, look for the following key words.
Inheritance
- Inheritance
- Subtyping
Inheritance in Java
- Extends
- Subclass
- Child class
- Super class
- Base class
- Parent class
- Derived class
- Object class
A Tale of Two Cats
base
- no-arg constructor
override
- method overriding
Inheritance from Abstraction
- Abstraction
abstract
- Abstract class
- Abstract method
Casting
- Runtime exception
- Polymorphism
Class Diagrams
- Class diagrams
- One-to-One Relationship
- One-to-Many relationship