Cpp Coding Standards/ENC

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.

Encapsulation (ENC)

Information hiding in classes. These items are all implementations of the meta rule PRINC:Hide - Hide Information.

Private Data (PrivData)

Make all class member data private. -> Details

No Friends (NoFriends)

Don't use “friend” except for the classical cases like stream operators. -> Details

Keep Internals (Internal)

Don't give out handles to class-internal data. -> Details

Protect (Protect)

Make all functions only to be used by derived classes protected. -> Details


Personal tools