Extension vs defender methods
Rémi Forax
forax at univ-mlv.fr
Tue Nov 15 00:51:15 PST 2011
On 11/15/2011 01:12 AM, David Holmes wrote:
> 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).
It's in the spec, you can re-abstract.
>
> David
>
Rémi
More information about the lambda-dev
mailing list