C++ style guide: Difference between revisions

Jump to navigation Jump to search
Line 125: Line 125:
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.  If there are both member functions and member variables use
Within an access block, member functions (methods) should be specified before member variables.  If there are both member functions and member variables use


     //--------
     //--------