Cpp Coding Standards/ENC/PrivData

From Apache OpenOffice Wiki
Jump to: navigation, search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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.

Personal tools