427 design standard
From CSSEMediaWiki
(Difference between revisions)
(New page: What rules do we all agree on? Let's write them here so everybody can follow them in their design study. Let's start with getters and setters...) |
|||
Line 1: | Line 1: | ||
− | |||
What rules do we all agree on? Let's write them here so everybody can follow them in their design study. | What rules do we all agree on? Let's write them here so everybody can follow them in their design study. | ||
− | + | == Getters and setters == | |
+ | * Always make fields have ''protected'' access. | ||
+ | * Always write a getter, but minimize access. | ||
+ | * Always call getter, even in same object. |
Revision as of 05:41, 23 July 2008
What rules do we all agree on? Let's write them here so everybody can follow them in their design study.
Getters and setters
- Always make fields have protected access.
- Always write a getter, but minimize access.
- Always call getter, even in same object.