Multiple Inheritance Base Classes || Constructor Inheritance || Python

In this we are going to see a program about Multiple Inheritance Base Classes using Constructor Inheritance 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

Previous Post Next Post