No, there’s no difference – you just tell that class B is a friend of class A and now can access its private and protected members, that’s all.
No, there’s no difference – you just tell that class B is a friend of class A and now can access its private and protected members, that’s all.