C++ style guide: Difference between revisions

Jump to navigation Jump to search
10 bytes added ,  20 December 2023
m
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


     //--------
     //--------
1,072

edits

Navigation menu