1,072
edits
m (New recommendation for ordering) |
(Add separator recommendation between member functions and variables.) |
||
Line 101: | Line 101: | ||
Within a class, the different access blocks should appear in the order 1) {{codeline|public}}, 2) {{codeline|protected}}, 3) {{codeline|private}}. | Within a class, the different access blocks should appear in the order 1) {{codeline|public}}, 2) {{codeline|protected}}, 3) {{codeline|private}}. | ||
Within an access block, member functions should be specified before member variables. | Within an access block, member functions should be specified before member variables. If there are both member functions and member variables use | ||
//-------- | |||
between the sections to visually separate the two categories. | |||
=== Namespace === | === Namespace === |
edits