GettersAndSetters
From APIDesign
(Difference between revisions)
m (APIDesignPatterns::GetterAndSetter moved to APIDesignPatterns:GetterAndSetter: Double ":") |
|||
Line 3: | Line 3: | ||
TBD: getter and setter is better than field | TBD: getter and setter is better than field | ||
TBD: no need for symmetry (a topic from [[Extreme Advice Considered Harmful]] chapter) | TBD: no need for symmetry (a topic from [[Extreme Advice Considered Harmful]] chapter) | ||
+ | |||
+ | |||
+ | [[Category:APIDesignPatterns]] | ||
+ | [[Category:APIDesignPatterns:Encapsulation]] |
Revision as of 12:31, 15 November 2008
Another topic from the Do Not Expose More Than You Want chapter. Describing simple, yet powerful from APIDesignPatterns:
TBD: getter and setter is better than field TBD: no need for symmetry (a topic from Extreme Advice Considered Harmful chapter)