Starting with the previous Rodent hierarchy, inherit
BlueHamster from Hamster (yes, there is such a thing; I
had one when I was a kid), override the base-class
methods, and show that the code that calls the base-class
methods doesn’t need to change in order to
accommodate the new type.
Starting with the previous Rodent hierarchy, inherit BlueHamster from Hamster (yes, there is such a thing; I had one when I was a kid), override the base-class methods, and show that the code that calls the base-class methods doesn’t need to change in order to accommodate the new type.