Inheritance in Python With Code Examples
Lal Babu Ray
Data Science Analyst, 1M+ LinkedIn impression, Own Analytics Siksha. Contact in chat for any query.
Advantages of Inheritance
The wide range of benefits are associated with inheritance that makes it one of the important concepts in Object Oriented Programmings. Some of the advantages of OOPs are given below:-
?
1.Real world Relations:? Inheritance is inspired by the concept of genetic. Child inherits the features of Parents and Grand Parents. Child also learns some new features in their life. In the same way we can also solve real world relations with the help of inheritance.
?
2. Reusability of Code: Inheritance provides reusability of code. The features defined in one class can be called in other class entirely or partially. After inheriting features of base class, derived class can also define its unique features.
?