Which of the following statements is false? Multiple constructors can be defined
ID: 3726135 • Letter: W
Question
Which of the following statements is false?
Multiple constructors can be defined in a class
Constructors do not have a return type, not even void
Constructors do not have to have name of the class itself.
Constructors are invoked using the new operator when an object is created
A)Multiple constructors can be defined in a class
B)Constructors do not have a return type, not even void
C)Constructors do not have to have name of the class itself.
D)Constructors are invoked using the new operator when an object is created
Explanation / Answer
C) Constructors do not have to have name of the class itself.
______________
Reason: This statement is false.Because the name of the constructor should be exactly same as the name of the class.
_____________Thank You
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.