+ 1
What's the diffetence between a regular variable and a property?
In oop C# i noticed the use of properties to hold values just the same as regular variables, so what's the point of using them?
1 Réponse
+ 1
properties are a special type of method that expose the specific variable. Since its a method, you can do much more with a property rather than just exposing a variable.