Q. Which of the following statements is correct about constructors? (Solved)

1. If we provide a one-argument constructor then the compiler still provides a zero-argument constructor.

2. Static constructors can use optional arguments.

3. Overloaded constructors cannot use optional arguments.

4. If we do not provide a constructor, then the compiler provides a zeroargument constructor.

  • d. If we do not provide a constructor, then the compiler provides a zeroargument constructor.
Subscribe Now

Get All Updates & News