Joe Soltzberg

25%
Flag icon
A major difference is that to implement the type defined by an abstract class, a class must be a subclass of the abstract class. Because Java permits only single inheritance, this restriction on abstract classes severely constrains their use as type definitions. Any class that defines all the required methods and obeys the general contract is permitted to implement an interface, regardless of where the class resides in the class hierarchy.
Joe Soltzberg
This use to be annoying sometimes before default methods...
Effective Java
Rate this book
Clear rating
Open Preview