2 ms·
> Java only distinguishes between interfaces and purely abstract base classes because one allows multiple inheritance and the other doesn't No. This is what fo
by Viliam1234 9y ago
> 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.