hi, i want to know some things about class derivation in c++ so i have super class x and an inherited class y and i did this
class x{
public:a;
private:b;
protected:c;
}
class y:public x{
public:d;
}
in this case how y can access a,b,and c and by how i mean(public,protected,private)
the second case:
class x{
public:a;
private:b;
protected:c;
}
class y:private x{
public:d;
}
the same question?
the third case:
class x{
public:a;
private:b;
protected:c;
}
class y:protected x{
public:d;
}
again the same question?
sorry i think i wrote too much bye