#include <iostream>
using namespace std;
class Abc{
void f(){cout<<"fff";};
public:
int publicI;
protected:
int protectedI;
private:
int privateI;
};
class Def : public Abc{
void f1(Abc b){
Def d;
publicI = 2; //OK!
protectedI = 2; //oK!
//privateI =2; //Error!
d.protectedI = 3; //OK!
b.publicI = 3; //OK!
//b.protectedI = 3; //Error!
}
};
int main(){
Abc a;
a.publicI = 1; //OK!
//a.protectedI = 1; //error!
//a.privateI = 1; //error!
return 0;
}