Vidyalelo
C# Programming · Q22

Classes and Objects in C Sharp

Programming · C# Programming · question 22

Q22

What is the purpose of the readonly keyword when applied to a field in a class in C#?

A.
To indicate that the field's value can only be set once
Answer
B.
To indicate that the field's value cannot be changed
C.
To indicate that the field's value is constant
D.
To indicate that the field's value is null

Answer: Option A

Solution

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