Question: Suppose a parent class A has a no - arg constructor. B is a child class of A and does not have any constructors. What
Suppose a parent class A has a noarg constructor. B is a child class of A and does not have any constructors. What will happen when an object of type B is created?
Question Answer
The noarg constructor from class A will be used.
The default noarg constructor provided to every class from the Java Object class will be used.
Neither of these two options.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
