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
Related Questions on Classes and Objects in C Sharp
A. A blueprint for creating objects
B. A method in C#
C. A variable in C#
D. A data type in C#
A. A method in C#
B. A variable in C#
C. An instance of a class
D. A data type in C#
A. public
B. private
C. protected
D. internal

Join The Discussion