Examveda

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

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


Join The Discussion

Related Questions on Classes and Objects in C Sharp