Timeline for When are Getters and Setters Justified?
Current License: CC BY-SA 3.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 27, 2016 at 6:00 | comment | added | AmadeusDrZaius | I'm surprised this answer is so far down. Getters and setters allow you to do more in the future (e.g. fire an event, do more input validation, do internal bookkeeping) without breaking your existing API. Even with non-public code, the fewer APIs you have to change, the fewer dependencies to update, and the fewer bugs introduced making those updates. | |
| Jul 16, 2013 at 15:46 | history | made wiki | Post Made Community Wiki by Dale | ||
| Aug 25, 2011 at 22:45 | history | answered | George Silva | CC BY-SA 3.0 |