Extension vs defender methods
David Holmes
david.holmes at oracle.com
Mon Nov 14 16:12:11 PST 2011
On 14/11/2011 12:40 PM, Paul Benedict wrote:
> On Sun, Nov 13, 2011 at 6:19 PM, David Holmes <david.holmes at oracle.com
> <mailto:david.holmes at oracle.com>> wrote:
>
> What is being added is a way to provide a default implementation for a
> method declared in an interface.
>
> David, wouldn't such default methods also be available in abstract
> classes? The mechanism should be the same, I think.
Not sure what you are saying. Any class that implements the interface
will benefit from the default implementation if it doesn't provide its
own (and assuming it doesn't re-abstract the method in question - not
sure if that is in the current spec).
David
More information about the lambda-dev
mailing list