#if !defined (_ACCESS_SPECIFIERS_HPP__) #define _ACCESS_SPECIFIERS_HPP__ /** * @class X * * See 11.0.2 [class.access] * Members of a class defined with the keyword class are private by default. * Members of a class defined with the keywords struct or union are public by default. * */ class X { int a; // X::a is private by default }; struct S { int a; // S::a is public by default }; #endif //_ACCESS_SPECIFIERS_HPP__