When would you use a friend class/function instead of inheritance?
14488
When should you use 'friend' in C++?
24963
How do you effectively model inheritance in a database?
156911
When to use static member function?
1099
Prefer composition over inheritance?
110761
Class with single method -- best approach?
141819
When to use wrapper class and primitive type
101175
When to use Helpers instead of Partials
139848
Why is multiple inheritance not supported in most of programming language?
31437
When should you use a class vs a struct in C++?
26639
Is there a way to simulate the C++ 'friend' concept in Java?
34921
How do I use a class method as a callback function?
121316
Are inner classes in C++ automatically friends?
116670
In Python, when should I use a function instead of a method?
6027
Should operator<< be implemented as a friend or as a member function?
16831
What's the difference between importing and extending a class?
63058
Why should I avoid multiple inheritance in C++?
110878
What is the main advantage of making a class abstract