Solved

Which of the Following Statements Is Correct About Constructors

Question 12

Multiple Choice

Which of the following statements is correct about constructors?


A) If we provide a one-argument constructor then the compiler still provides a zeroargument constructor.
B) Overloaded constructors have the same name as the class name
C) Overloaded constructors cannot use optional arguments.
D) If we do not provide a constructor, then the compiler provides a zero-argument constructor.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents