Doesn't that defeat the very purpose of single class inheritance? It sounds like a hack to have multiple class inheritance: If I do interfaces where all methods are defender methods then I can mock multiple class inheritance.
I'm just trying to find a scenario where this could be useful.
Sent from my iPad
On 20 Aug 2012, at 19:58, Kevin Wright <[address removed]> wrote:
On 20 August[masked]:45, Abraham Marín Pérez <[address removed]>
This might be a silly question but... What's the difference between an interface with a default method and an abstract class with an implementation for that method?
Java has multiple interface inheritance, but single class inheritance. You could, potentially, inherit defender methods from multiple parents.
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Kevin Wright ([address removed]) from LJC - London Java Community.
To learn more about Kevin Wright, visit his/her member profile
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages
Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]