Google News
logo
C# - Quiz(MCQ)
Which of the following C# statements is correct?
A)
C# provides a copy constructor.
B)
A class can have more than one destructor.
C)
Destructors are used with classes as well as structures.
D)
A constructor can be used to set default values and limit instantiation.

Correct Answer :   A constructor can be used to set default values and limit instantiation.

Advertisement