Google News
logo
Python - Interview Questions
What is Inheritance in Python programming?
Inheritance is used to specify that one class will get most or all of its features from its parent class. It is a feature of Object Oriented Programming. The new class is called derived (or child) class and the one from which it inherits is called the base (or parent) class.
The child class or derived class inherits the features from the parent class, adding new features to it. It facilitates re-usability of code.
Advertisement