Question: Which statement about a no-argument constructor is true? A. The Java compiler will always insert a default no-argument constructor if you do not define a
Which statement about a no-argument constructor is true?
A. The Java compiler will always insert a default no-argument constructor if you do not define a no-argument constructor in your class.
B. For a class to call super() in one of its constructors, its parent class must explicitly implement a no-argument constructor.
C. If a class extends another class that has only one constructor that takes a value, then the child class must explicitly declare at least one constructor.
D. A class may contain more than one no-argument constructor.
Step by Step Solution
3.32 Rating (155 Votes )
There are 3 Steps involved in it
The correct answer is C If a class extends another class that has only one constructor that takes a ... View full answer
Get step-by-step solutions from verified subject matter experts
