+ 2
Whats the difference between fields and properties?
Hi all, As title says, whats the difference between fields and properties? Are properties the getters and setters of a variable? And is a field the same as a variable? Thanks in advance!
2 Respuestas
+ 3
You're right: fields are variables, and properties are the getters and setters of a variable (or more specifically, a data member accessed by the means of an accessor).
+ 1
thank you!