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 no-arg 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 15Answer
The no-arg constructor from class A will be used.
The default no-arg 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!