struct 和 class 的不同 其中成员的 ‘默认访问属性’不同。 struct: 公有class: 私有作为派生类时对基类的 ‘默认访问方式’不同 struct Student : Person //默认公有继承class Student : Person //默认私有继承