OBJECTIVES
After studying this chapter, you will
Understand the concepts of inheritance and polymorphism.
Know how Java's dynamic binding mechanism works.
Be able to design and use abstract methods and classes.
Be able to design and use polymorphic methods.
Gain a better understanding of object-oriented design.
OUTLINE
8.1
Introduction
8.2
Java's Inheritance Mechanism
8.3
Abstract Classes, Interfaces, and Polymorphism
8.4
Example: A Toggle Button
8.5
Example: The Cipher Class Hierarchy
Historical Cryptography
8.6
CASE STUDY: A Two-Player Game Hierarchy
8.7
Principles of Object-Oriented Design
Chapter Summary
Solutions to Self-Study Exercises
Exercises