Why the constructer of super class not invoke , when object of sub class made in python ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why the constructer of super class not invoke , when object of sub class made in python ?

Is it not same like cpp and jave .

16th Oct 2022, 9:22 AM
Abhay mishra
Abhay mishra - avatar
1 Answer
+ 1
Yeah, you need to call the super classes init method within the subclass
16th Oct 2022, 9:31 AM
Slick
Slick - avatar