I had a huge issue understanding why I might want to use properties... most "descriptions" said something along the lines of so you don't need to use Getters/Setters... the immediate question is then of course why would I need Getters/Setters lol
Anyhow this article covers all that and Describes it perfectly so thought id share
one advantage is you can start your code with an attribute. Later 'upgrade' to a property, if you need getters/setters. Other languages this would require external code to change.
2
u/dr3d3d May 03 '14
I had a huge issue understanding why I might want to use properties... most "descriptions" said something along the lines of so you don't need to use Getters/Setters... the immediate question is then of course why would I need Getters/Setters lol
Anyhow this article covers all that and Describes it perfectly so thought id share