Vidyalelo
C# Programming · Q22

Miscellaneous in C Sharp

Programming · C# Programming · question 22

Q22

Which of the following statements about properties in C# is true?

A.
Properties cannot be used in inheritance
B.
Properties cannot have default values
C.
Properties can only have setters
D.
Properties encapsulate fields
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board