What is the difference between properties and methods?

 Posted by Rajni.Shekhar on 6/29/2012 | Category: ASP.NET Interview questions | Views: 8403 | Points: 40

Properties are used to represent data, whereas methods are used to performs actions.

Properties are created by using getter and setter. get{} and set{} but methods create like public void method1(parameter list here)

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Shanky11 on: 2/1/2013 | Points: 10
means there is defference between method and propertis in .net

Login to post response