Create an inheritance hierarchy of Rodent: Mouse,
Gerbil, Hamster, etc. In the base class, provide methods
that are common to all Rodents, and redefine these in the
derived classes to perform different behaviors depending
on the specific type of Rodent. Create an array of
pointers to Rodent, fill it with different specific types of
Rodents, and call your base-class methods to see what
happens.
Create an inheritance hierarchy of Rodent: Mouse, Gerbil, Hamster, etc. In the base class, provide methods that are common to all Rodents, and redefine these in the derived classes to perform different behaviors depending on the specific type of Rodent. Create an array of pointers to Rodent, fill it with different specific types of Rodents, and call your base-class methods to see what happens.