[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Order of public, protected and private stuff in class declarations



IMHO it should be part of the coding convention that public stuff should be
declared before protected stuff, and protected stuff before private stuff.
This makes sense since most people will be looking for the public stuff,
some people will look the the protected stuff and very few will look for the
private stuff.

IMHO methods should be declared before member variables.

IMHO constructors should be declared before anything else, followed by the
destructor.