Why the constructer of super class not invoke , when object of sub class made in python ? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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 Antwort
+ 1
Yeah, you need to call the super classes init method within the subclass
16th Oct 2022, 9:31 AM
Slick
Slick - avatar