Cpp Coding Standards/CODEDOC/ClassResp

From Apache OpenOffice Wiki
< Cpp Coding Standards‎ | CODEDOC
Revision as of 17:06, 14 December 2009 by B michaelsen (Talk | contribs)

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

Every class should have one cohesive responsibility (see CLSDESIGN:OneResp ). Express that in a precise statement.

A class normally is more complex than can be expressed in one name. Therefore most times a comment is necessary. There may be very few cases where this is unnecessary. But in most cases it is necessary, like for a class “String”: Is it an ASCII String or Unicode? Is it static or allows manipulation?

Personal tools