What do we mean by read-only property?

 Posted by Rajesh_Kumar on 2/13/2014 | Category: C# Interview questions | Views: 840 | Points: 40

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.

get{return variable_name}

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response