ITP2 - OOP Tutorials - Inheritance - Class Inheritance

We use the < operator to signify that the GoodDog class is inheriting
from the Animal class. This means that all of the methods in the Animal
class are available to the GoodDog class for use. We also created a new
class called Cat that inherits from Animal as well. We've eliminated the
speak method from the GoodDog class in order to use the speak method
from Animal.

When we run this code we see the correct output. Both classes are now
using the superclass Animal's speak method.