Difference between revisions of "Cpp Coding Standards/ENC/PrivData"
From Apache OpenOffice Wiki
< Cpp Coding Standards | ENC
m (hallmark is one of the little number of words you write together) |
m (Cpp Coding Standards/Encapsulation/PrivData moved to Cpp Coding Standards/ENC/PrivData: consistency) |
(No difference)
|
Revision as of 15:44, 22 May 2007
Giving away your internals makes preserving class invariants impossible, and thwarts future modifications to the inner workings of your class. Remember that information hiding is one of the hallmarks of good software design.
Exception: behaviourless c-style structs, that serve as value aggregates.