A Mammal is an Animal, and a Reptile is an Animal, but each derived class represents different specializations of the base class.When you define a class to derive from another class, the derived class implicitly gains all the members of the base class, except for its constructors and destructors.