-Inheritance allows us to define a class that inherits all the methods and properties from another class.
it is the class being inherited from, also called base class.
Child class is the class that inherits from another class, also called derived class.
-constructor is a special type of function of the class which is automatically call when the instance of the class is created.
#create parent class
print("Constructor of class A")
#create child class
print("Constructor of class B")
#create object of child class
Constructor of class B
-In this program, we have a two class, class A and class B.
-Here both class contain the constructor and class B is a child class which inherits the property of class A.
-In c++, when we create a object of the child class then the constructor of parent class also call along with the constructor of child class.
-But in python, constructor of only child class is call,when the object of child class is created.