Answer:
Step-by-step explanation:
Use composition when you can, private inheritance when you have to. Normally you don't want to have access to the internals of too many other classes, and private inheritance gives you some of this extra power
5.9m questions
7.7m answers