class A
{
protected:
int m_a;
int m_b;
};
class B: public A
{
};
In class B i want to make m_a
private.
Does the following the correct way to do it
class B:public A
{
private:
int m_a;
};
Won't this result in 2 copies of m_a
?