I have the following code:
class A { private: int i; }; class B : public A { private: int j; };
When I check sizeof(B)
sizeof(B)
It is inherited - the derived class object will contain it, but it can't be accessed by member functions of the derived class.