<<< Access levels for inheritance | Index | Inheritance vs. encapsulation >>> |
Basically, these two ideas don't interact:
Being a friend of Base doesn't make you a friend of Derived.
Being a friend of Derived doesn't make you a friend of the Base.
<<< Access levels for inheritance | Index | Inheritance vs. encapsulation >>> |