Home / C# Programming / Constructors :: Discussion

Discussion :: Constructors

  1. Which of the following statements is correct about constructors?

  2. 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 zero-argument constructor.

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    No answer description available for this question.


Be The First To Comment