Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Interfaces are a way of breaking out. They're additive, rather than hierarchical, from the implementing class perspective.

Java (and .Net by copying) choose to make interfaces additive and superclasses combinatorial. It's a design decision and in no way intrinsic. Other languages have different choices.



Oh, I'm aware. However additive superclasses are much much worse for OOP, there's good reason languages beyond C++ haven't walked the same road.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: