Difference between revisions of "Naming convention"
From DarkWiki
(→Getters and setters) |
(→Getters and setters) |
||
| Line 3: | Line 3: | ||
===Getters and setters=== | ===Getters and setters=== | ||
| − | + | * Getters (get, is) | |
| − | + | ** Does not alter the object in any way; it is constant | |
| − | + | ** Can be called multiple times, and in any order | |
| − | + | ** Returns a consistent result | |
| − | |||
Revision as of 08:48, 29 March 2019
Java naming convention
Getters and setters
- Getters (get, is)
- Does not alter the object in any way; it is constant
- Can be called multiple times, and in any order
- Returns a consistent result