it allows class B and class C to do whatever they want with class a ,and even directly access their data members. inheritance is used for Cold reusability for hierarchies and promotes encapsulation. Friend classes on the other hand usually break encapsulation.
The concepts are too far apart that I don't understand why you are confusing them.
I'm still a beginner so please go soft on me.
What's the difference other than the fact that friends can also be included for functions while inheritance can't, polymorphism and also what GKneeus said.
What's the difference other than the fact that friends
The real question is what's the commonality? There isn't any. They accomplish different things by different methods and are used for different reasons.
Thus the confusion. It would seem you haven't researched them to any degree if you're looking for "differences." That's all there are.