class A{ private: int a; int b; int c; }; class B : public A{ }; int main() { int lena = sizeof A; int lenb = sizeof B; return 0; }
private成员,也被继承下来,只是不能访问