Possible Duplicate:
When to use C++ private inheritance over composition?
Please help me with a scenario where composition is preferred over private inheritance.
Possible Duplicate:
When to use C++ private inheritance over composition?
Please help me with a scenario where composition is preferred over private inheritance.
All the time. The real question is, when is private inheritance preferred over composition? Only when virtual functions are required. Else, always favour composition.