Cpp Coding Standards/ENC/PrivData

From Apache OpenOffice Wiki
< Cpp Coding Standards‎ | ENC
Revision as of 22:49, 7 January 2007 by Thorsten (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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 hall marks of good software design.

Exception: behaviourless c-style structs, that serve as value aggregates.

Personal tools