Basic Program on Constructor Inheritance || Constructor Inheritance || Python

In this we are going to see a basic program on Constructor Inheritance in Python Programming Language.

class parent:
    def __init__(self):
        print("Base class constructor")


class child(parent):
    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

Previous Post Next Post