Why the constructer of super class not invoke , when object of sub class made in python ? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
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 ответ
+ 1
Yeah, you need to call the super classes init method within the subclass
16th Oct 2022, 9:31 AM
Slick
Slick - avatar