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

That doesn’t follow. The restriction could have been defined in terms of allowing at most one parent class to be non-pure-abstract. And there are lesser restrictions hat would have been conceivable as well. Java is single-inheritance only in the sense of the particular interface–class distinction it makes. For example, since Java 8 you can inherit method implementations from multiple interfaces.


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

Search: