c++ public vs private inheritancce : <p>I don't understand and i really don't get public vs private inheritance in classes.
Suppose we have the following code:</p>

<pre><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;
};
</code></pre>

<p>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;</p>
