Q.

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.
B. Static constructors can use optional arguments.
C. Overloaded constructors cannot use optional arguments.
D. If we do not provide a constructor, then the compiler provides a zeroargument constructor.
Answer» D. If we do not provide a constructor, then the compiler provides a zeroargument constructor.
2.5k
0
Do you find this helpful?
2

View all MCQs in

DotNet Technology

Discussion

No comments yet