Why the constructer of super class not invoke , when object of sub class made in python ? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Resposta
+ 1
Yeah, you need to call the super classes init method within the subclass
16th Oct 2022, 9:31 AM
Slick
Slick - avatar