Polymorphism & Dynamic Binding


Aquarium Example

Imagine that the aquarium in the Aquarium Lab Series could hold more than just fish. We could create a simple superclass, AquariumObject, that implements the following methods:

Subclasses of AquariumObject might include:


Alyce Brady, Kalamazoo College