Question: Suppose a parent class A has a no - arg constructor. B is a child class of A and has one constructor that takes an
Suppose a parent class A has a noarg constructor. is a child class of A and has one constructor that takes an int parameter. What will happen when an object of type is created with no arguments?
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
