In this we are going to see a program on simple inheritance of constructor in Python Programming Language.
class Class():
def __init__(self, x):
print(x)
class SubClass(Class):
def __init__(self, x):
super().__init__(x)
x = [1, 2, 3, 4, 5]
a = SubClass(x)
# Coded By Dhiraj Shelke
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP