1.

Which of the following statements is correct about properties used in C#.NET?

A. Every property must have a set accessor and a get accessor.
B. Properties cannot be overloaded.
C. Properties of a class are actually methods that work like data members.
D. A property has to be either read only or a write only.
Answer» D. A property has to be either read only or a write only.


Discussion

No Comment Found

Related MCQs