C/C++ struct和class

1、struct的默认继承权限和默认访问权限都是public。

2、class的默认继承权限和默认访问权限都是private。

原文地址:https://www.cnblogs.com/yangwenhuan/p/12107436.html