the mechanism of designing and constructing classes from other classes is called inheritance inheritance is the capability of one class to derive or inherit the properties from some another class the new class is called derived class or child class and the class from which this derived class has been inherited is the base class or parent class the benefits of inheritance are it represents real-world relationships well it provides reusability of code we don' have to write the same code again and again alsoit allows us to add more features to class without modifying it it is transitive in naturewhich means that if class inherits from another class athen all the subclasses of would automatically inherit from class