What do we mean by read-only property?

 Posted by Rajesh_Kumar on 2/13/2014 | Category: C# Interview questions | Views: 1772 | Points: 40
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 

Comments or Responses

Login to post response