#include <iostream>
using namespace std;
class Base {
public:
int a = 1;
protected:
int b = 2;
private:
int c = 3;
};
// 公有继承
class Derive1 : public Base {};
// 保护继承
class Derive2 : protected Base {};
// 私有继承
class Derive3 : private Base {};
int main() {
Derive1 d1;
Derive2 d2;
Derive3 d3;
// 以下为待判断的访问操作
}