Hacker News new | ask | show | jobs
by mercurial 3801 days 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.

1 comments

Totally, no problem with default implementations as long as they are generic. Java finally supports this, as well as Rust and others.