Inheritance is a mechanism of acquiring the features and behaviors of a class by another class . The class whose members are inherited is called the base class, and the class that inherits those members is called the derived class. Inheritance implements the IS-A relationship.