Are constructors inherited by (all) sub-classes? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

Are constructors inherited by (all) sub-classes?

26th Dec 2016, 11:18 PM
A.G.
1 Respuesta
+ 1
no, they are not inherited, but base class constructors are called by the derive class before calling their own constructor when a object of derive class is created.
27th Dec 2016, 11:15 AM
Ravi Kumar
Ravi Kumar - avatar