3 ms·
> (Unless you consider Java’s interfaces to be inheritance when they are the language’s alternative to using inheritance.) Having come to Java from C++, I alwa
by TeMPOraL 8y ago
> (Unless you consider Java’s interfaces to be inheritance when they are the language’s alternative to using inheritance.)
Having come to Java from C++, I always considered Java's interfaces to be a syntactic sugar on top of inheritance. In C++, there is (or was, back then) no meaningful difference between "interface" inheritance and "class inheritance" - and why would there be, if it boils down to stringing up vtables together?