OOP & Design Patterns - Composition vs Inheritance - Favour Composition, Why & When
A developer writes a class hierarchy where subclasses override methods to change behavior. They claim this is always better than composition because it avoids object creation overhead. What is the flaw in this reasoning?
