Difference between revisions of "Cpp Coding Standards/ENC/PrivData"

From Apache OpenOffice Wiki
Jump to: navigation, search
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
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.  
+
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.
 
Exception: behaviourless c-style structs, that serve as value aggregates.
 +
[[Category:Coding Standards]]

Latest revision as of 17:09, 14 December 2009

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