News for hackers. Stuff that matters.
Re:Inheritance was invented as a performance hack by layer8 on Friday May 09, 2025 @08:19AM (#43935947)
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.

There are no comments on this comment yet.