In this we are going to see a basic program to call base class in python using constructor in Python Programming Language.
class Base:
def __init__(self):
print("Base class Constructor")
class Child(Base):
def __init__(self,):
super().__init__()
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