Inheritance relationship defines the classes that inherit from other classes as derived, subclass, or sub-type classes . Base class remains to be the source from which a subclass inherits. For example, you have a Base class of “Animal,” and a “Lion” is a Derived class. The inheritance will be Lion is an Animal.