Friendship is not inherited

less than 1 minute read

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