Difference between Properties and variables in C#
Difference between Properties and variables in C#
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
ShankeyPosted Nov 22, 2010, 12:57 AM
The main difference between properties and variable is that the properties are encapsulated within the class,it is the data memeber of the class and a copy of for each object of that class and variable are local to their scope, Properties have scope within the class
Madhu KPosted Nov 22, 2010, 12:28 AM
http://www.c-sharpcorner.com/UploadFile/puranindia/Variables11122009020831AM/Variables.aspx
http://www.c-sharpcorner.com/UploadFile/rajeshvs/PropertiesInCS11122005001040AM/PropertiesInCS.aspx