In this we are going to see a program of inheritance using constructor in Python Programming Language.
class Base:
def __init__(self):
print("Base class Constructor")
class Child(Base):
def __init__(self,):
print("Child class Constructor")
c = Child()
# Coded by Saahil
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP