class A { public: void *p1; private: void *p2; protected: void *p3; }; class B: public A {};
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题