<<< Access control | Index | Access control rules >>> |
Use as many access specifiers as you want, in any order.
Each one is in effect until the next one, or the end of the declaration.
Specifiers go only in class declarations, nowhere else.
// point.h class Point { private: int m_x; int m_y; void reset_coordinates(); public: double distance_to_origin(); };
<<< Access control | Index | Access control rules >>> |