I don't understand and i really don't get public vs private inheritance in classes. Suppose we have the following code:
class A {
int A_a;
protected:
int A_b;
public:
int A_c;
};
class B : public A {
int B_a;
protected:
int B_b;
public:
int B_c;
};
class C : private A {
int C_a;
protected:
int C_b;
public:
int C_c;
};
I know it has to be with access rights over vars and funcs, but doing all the tests i really can grasp it and i don't know when to apply public or private inheritance;