This section presents guidelines for laying out code in classes. The first subsection describes how to lay out the class interface. The second subsection describes how to lay out the class implementations. The final subsection discusses laying out files and programs.
In laying out class interfaces, the convention is to present the class members in the following order:
Header comment that describes the class and provides any notes about the overall usage of the class
Constructors and destructors
Public routines ...