[Next] [Prev] [Up] [Top]
7.0 Classes
No public data members (R)
Never publish data members of a class as public. They should either be protected or private and should have an access method where appropriate to the abstraction; ie, not all data members require access methods.
The only exception to the "no public data members" rule might be class-scoped structs.
No Title
[Next] [Prev] [Up] [Top]
Generated with CERN WebMaker