Reputation
Next privilege 125 Rep.
Vote down
Badges
2
Impact
0 people reached

  • 0 posts edited
  • 0 helpful flags
  • 2 votes cast
Sep
24
awarded  Autobiographer
May
13
awarded  Supporter
May
13
comment static set and non-static get method
I personally would prefer to be consistent and not mix up static and non-static getter and setter. However, there might be a better approach if the context was known.
May
13
comment static set and non-static get method
Are you sure that the field has to be static in the first place? Non-static setter and getter give the impression that the value you are retrieving or changing belongs to the instance.