Inheritance in Python
A class can inherit attributes and behaviour methods from another class, called the superclass . A class which inherits from a superclass is called a subclass , also called heir class or child class. Inheritance enable us to define a class that takes all the functionality from parent class and allows us to add more.