c++中public与private的默认情况

c++中,如果我们对类的成员(包括成员变量和成员函数)没有定义属性,则默认是private。

猜你喜欢

转载自blog.csdn.net/u010029439/article/details/80640306
今日推荐