4 ms·
> Do we need inheritance at all? It only leads to complicated class hierarchies and leaky abstractions. Are there cases/problems where inheritance approach is s
by throw_m239339 4y ago
> Do we need inheritance at all? It only leads to complicated class hierarchies and leaky abstractions. Are there cases/problems where inheritance approach is superior to composition, interfaces, etc?
No, but since Python allows multiple inheritance, one can use parent classes as traits for composition without having to write so silly boilerplate.