5 ms·
> The article mentions the strategy pattern which, ironically, often requires inheritance to implement. Not really. It only requires interface inheritance for
by dangph 19y ago
> The article mentions the strategy pattern which, ironically, often requires inheritance to implement.
Not really. It only requires interface inheritance for statically-typed languages, which is not really inheritance, and no inheritance at all for duck-typed languages.