Just reading about Java 8. They have added a new mechanism to interfaces so that you can supply a default implementation of a method.
It seems this is purely to allow them to provide some random default implementations for extensions to existing interfaces. Surely extending the interface via a sub interface or an abstract subclass would have been the right thing to do?
It just seems like a horrible bodge to me.
It seems this is purely to allow them to provide some random default implementations for extensions to existing interfaces. Surely extending the interface via a sub interface or an abstract subclass would have been the right thing to do?
It just seems like a horrible bodge to me.
Comment