an inheritance hierarchy of
etc. In the base class, provide methods that are common to all
and override these in the derived classes to perform different behaviors
depending on the specific type of
Create an array of
fill it with different specific types of
and call your base-class methods to see what happens.
Exercise 1 so that
the problem in
inner classes that turn fans on and off.