Users Also Read
MCQ's Search Engine
Electrical Engineering
Mechanical Engineering
Civil Engineering
Automobile Engineering
Chemical Engineering
Computer Engineering
Electronics Engineering
Medical Science Engg
Which of the following statements is correct about constructors? | |
A. | If we provide a one-argument constructor then the compiler still provides a zero-argument constructor. [Wrong Answer] |
B. | Static constructors can use optional arguments. [Wrong Answer] |
C. | Overloaded constructors cannot use optional arguments. [Wrong Answer] |
D. | If we do not provide a constructor, then the compiler provides a zero-argument constructor. [Correct Answer] |