Friendship is not inherited
Friendship is not inherited. class A { friend class B; }; class B { }; class C : public B { }; => C cannot access private and protected members of A!
Friendship is not inherited. class A { friend class B; }; class B { }; class C : public B { }; => C cannot access private and protected members of A!