📜  C++ 代码示例中的默认访问说明符

📅  最后修改于: 2022-03-11 14:44:58.339000             🧑  作者: Mango

代码示例1
By default access to members of a C++ class is private. 

The private members are not accessible outside the class; 
they can be accessed only through methods of the class. 

The public members form an interface to the class and 
are accessible outside the class.