Why the constructer of super class not invoke , when object of sub class made in python ? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponse
+ 1
Yeah, you need to call the super classes init method within the subclass
16th Oct 2022, 9:31 AM
Slick
Slick - avatar