News for hackers. Stuff that matters.
Re:Inheritance Often Doesn't Make Sense by Viliam1234 on Monday March 19, 2018 @04:36PM (#16622876)
> Java only distinguishes between interfaces and purely abstract base classes because one allows multiple inheritance and the other doesn't

No. This is what former C/C++ programmers coming to Java typically believe (some of them even after spending 10 years coding in Java, because old habits die hard).

interface = interface

abstract base class = implementation

Interface and implementation may seem like "a distinction without a difference", because one is just a list of method headers and the other is a list of method headers with method bodies, but semantically they are the opposite of each other.

There are no comments on this comment yet.