Hacker News new | ask | show | jobs
by snuxoll 2228 days ago
> At my company, we have banned it, because if you add a method to Bar the method is automatically added to Foo which makes the delegation as fragile as the inheritance.

Delegation does not remove the need for interfaces.