I have the following code:
class A { private: int i; }; class B : public A { private: int j; };
When I check sizeof(B)
sizeof(B)
all member variables are inherited. the private protected public modifiers only alter who has access to those variables
private protected public