Answer:
Read-Only property is also known as Get property.
The get property is enclosed in curly braces({ }) and it must return value.It can access any member on the class.
Syntax:-
get{return variable_name}
Asked In: Many Interviews |
Alert Moderator