In this we are going to see a basic example of constructor overloading in Python Programming Language.
class Base1:
def __init__(self):
print("Base1 class Constructor")
class Base2:
def __init__(self):
print("Base2 class Constructor")
class Child(Base1, Base2):
def __init__(self):
super().__init__()
print("Child1 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