Introduction to OOP: Chapter 7: Inheritance [next] [previous] [audio] [real] [text]

Heuristics for Subclassing - Specification

The next most common form of inheritance involves specification. The parent class specifies some behavior, but does not implement the behavior.

Example, Java 1.1 Event Listeners:

ActionListener, MouseListener, and so on specify behavior, but must be subclassed.

Intro OOP, Chapter 7, Slide 10