Inheritance in Python

Last updated:9/18/2020 3:41:33 PM

1 Answers

Prakash nidhi Verma
Prakash nidhi Verma

Inheritance allows for one class to gain all the attributes and methods of another class. code reusability increase in Inheritance. it makes easier to create and maintain an application. The classfrom which we are inheriting is known as super-class and the class that is inherited is called a child class. 

Type of Inheritance in Python : 

- Single Inheritance  

- Multi-level inheritance

- Hierarchical inheritance

- Multiple inheritance