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

Options

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.

Click to view Correct Answer

Previous || Next

Constructors - General Questions more questions

Which of the following is the correct way to access....

Which of the following statements is correct?

Which of the following statements is correct about the C#.NET....

Which of the following ways to create an object of....

Which of the following statements are correct about static functions?

Which of the following is the correct way to define....

In which of the following should the methods of a....

Can static procedures access instance data?

Which of the following statements are correct about constructors in....

How many times can a constructor be called during lifetime....

Attributes - General Questions more Online Exam Quiz

Attributes - General Questions

Classes and Objects - General Questions

Collection Classes - General Questions

Datatypes - General Questions

Delegates - General Questions

.NET Framework - General Questions

Enumerations - General Questions

Exception Handling - General Questions