M

Mr. Dubey • 52.74K Points
Coach

Q. 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 - Option(D)
  • Views: 85
  • Filed under category C#

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics