Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
0
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")
20th Oct 2016, 1:10 PM
pchot c
pchot c - avatar