New course! Every coder should learn Generative AI!
Try a free lesson0
That's how:
class A:
def __init__(self,value):
print("inside A " + value)
class B(A):
def __init__(self,value):
super(B, self).__init__("called super constructor in B")
print("inside B "+ value )
B("valB")