Python ProgrammingPython Programming

Python Inheritance

In this tutorial you will learn, how to achieve single and multiple inheritance in Python.

Just like Java or C++, Python also supports the concept of both multiple and multilevel inheritance.

Inheritance is the ability to define a new class that is a modified version of an existing class. The new class inherits the members of the class it extends.

When a new class inherits from an existing one, the existing one is called the parent class(super-class) and the new class is called the child class(sub-class).