Features and Types of Inheritance
Learn about the different features and types of inheritance.
We'll cover the following...
Features of inheritance
Inheritance facilitates three things:
- Inheritance of an existing feature: To implement this, just establish inheritance relationship.
- Suppressing an existing feature: To implement this, hide base class implementation by defining the same method in the derived class.
- Extending an existing feature: To implement this, call base class method from the derived class by using one of the following two forms:
super().base_class_method