In Java, when a subclass object is created, is a superclass object created or not? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

In Java, when a subclass object is created, is a superclass object created or not?

18th Dec 2016, 5:47 AM
Somnath Ghosh
Somnath Ghosh - avatar
1 Answer
+ 2
Not exactly, but the super constructor its called.
18th Dec 2016, 5:52 AM
Nahuel
Nahuel - avatar