What is the difference between properties and methods?
Interview question and answer by:
Rajni.Shekhar | Posted on: 6/29/2012 | Category:
ASP.NET Interview questions | Views: 1298 | |
Points: 40
Answer:
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
Found interesting? Add this to: