- Online Exam Test Papers | - MCQs[multiple choice questions and answers ] | - Mock Test Papers | - Practice Papers | - Sample Test Papers |

Question:
Which of the following statements is correct about constructors?

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

Posted Date:-2021-02-24 11:05:30


More MCQS Questions and answers

Search