3 ms·
Unfortunately, in some languages, inheritance of abstract classes is the only way to get the equivalent of interfaces. That said, yeah, the less class inherita
by mercurial 11y ago
Unfortunately, in some languages, inheritance of abstract classes is the only way to get the equivalent of interfaces.
That said, yeah, the less class inheritance, the better. Ideally, work in a language where interfaces can include default implementations.
- bluejekyll 11y agoTotally, no problem with default implementations as long as they are generic. Java finally supports this, as well as Rust and others.