[求助]访问问题?
class X{ protected:int i,j;
public:
void get_ij(){cout<<"enter two numbers:";cin>>i>>j;};
void put_ij(){cout<<""<<j<<'\n';};
};
class Y:private X
{ int k;
public:
int get_k(){return k;};
};
main()
{Y var1;
var1.get_ij(); //为什么书上说这行是错的?
var1.put_ij(); //为什么书上说这行是错的?
}