Friday 16 December 2011

48.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.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.
E.Static constructors can use optional arguments.
Answer: Option D