Use of super() in Constructor Inheritance – 1 || Constructor Inheritance || Python

In this we are going to see a program on Use of super() in Constructor Inheritance - 1 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

Previous Post Next Post