Introduction of inheritance in python | inheritance in python | what is inheritance |


Introduction of inheritance in python | inheritance in python | what is inheritance |


Python Inheritance 



Introduction of inheritance in python | inheritance in python | what is inheritance |
Introduction of inheritance in python

Inheritance is an important aspect of  the object oriented paradigm . Inheritance provide code reusability to the program because we can use an existing class to create a new class .
In Inheritance the child class acquires the properties and can access all the data members and function define in the parent class .
A child class can also provide its specific implementation to the function of the parent class .
Inheritance is a powerful feature  of oop that allows programmers to enable a new class to receive or Inherits all the properties and method of existing class or classes .
As we all came to knows that class is blueprint or templates of an object.
Every object is built from a class and concept Inheritance is used to create a relationship between these "blueprints " .
Inheritance is a feature of OOP which is used to define a new class with little or no modification to and existing class .
The new class is called derived class or child class or sub class and the class from which this derived class has been inherited is the base class or parent class or super class .
The derived class is formed from base class it may include some extra additional features . this Inheritance concept help to reuse the code .


Dig. - Inheritance 




In the above diagram the features of base class are also present in derived class along with the   features of the derived class. This base class features can be accessible to derived class because of the concept of inheritance.
















Post a Comment

Post a Comment (0)

Previous Post Next Post