I have the following code:
class A { private: int i; }; class B : public A { private: int j; };
When I check sizeof(B)
sizeof(B)
i dont know what language this is, but when you inherit the original object still exists. that is why you can still call base.method()