add-memberalign-toparrow-leftarrow-rightbellblockcalendarcamerachatchevron-leftchevron-rightchevron-small-downchevron-upcircle-with-crosscomposecrossfacebookflagfolderglobegoogleimagesinstagramkeylocation-pinmedalmoremuplabelShape 3 + Rectangle 1pagepersonpluspollsImported LayersImported LayersImported LayersshieldstartwitterwinbackClosewinbackCompletewinbackDiscountyahoo

Re: [ljc] Re: Defender Methods

From: Abraham Marín P.
Sent on: Tuesday, August 28, 2012 10:43 PM
You can ignore the inheritance hierarchy and only use the implements hierarchy to mock multiple inheritance with interfaces+defender methods mocking abstract classes.

Abraham Marín Pérez

Blogs: http://www.gatogo...­
Twitter: @AbrahamMarin
LinkedIn: http://www.linked...­

Sent from my iPhone

On 29 Aug 2012, at 02:01, Russel Winder <[address removed]> wrote:

> On Wed,[masked] at 05:54 -0400, Abraham Marín Pérez wrote:
>> I think the key point was pretty much highlighted by Tom: the matter
>> is that with this change interfaces aren't such thing any more, but
>> glorified abstract classes.
> I am not sure this is the case. Abstract classes are within the
> inheritance hierarchy, interfaces are in the implements hierarchy. As
> well as multiple implements being fine and multiple extends being
> anathema, interfaces cannot introduce new state.
> […]
> -- 
> Russel.
> ====================­====================­====================­=================
> Dr Russel Winder      t: [masked]   voip: sip:[address removed]
> 41 Buckmaster Road    m: [masked]   xmpp: [address removed]
> London SW11 1EN, UK   w:  skype: russel_winder
> --
> Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
> http://www.meetup...­
> This message was sent by Russel Winder ([address removed]) from LJC - London Java Community.
> To learn more about Russel Winder, visit his/her member profile: http://www.meetup...­
> Set my mailing list to email me
> As they are sent
> http://www.meetup...­
> In one daily email
> http://www.meetup...­
> Don't send me mailing list messages
> http://www.meetup...­
> Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]

Our Sponsors

  • Our Blog

    Read the latest news from the LJC

  • RecWorks Ltd

    Fixing Tech Recruitment using the Power of Community

  • jClarity

    Java/JVM Performance Analysis Tools & mentoring for Java related matters

  • LJC Aggrity

    Our LJC Aggrity site contains blog posts from our members

  • LJC Book Club

    Our Book club with book reviews from our members

  • Devoxx UK

    Java Community Conference, in collaboration with the LJC 12/13 Jun 14

  • SkillsMatter

    "Host, help organise, promote, film many of our meetings."

  • IBM

    Build Enterprise-grade apps at start-up speed.

  • New Relic

    New Relic makes sense of billions of metrics a day in real time.

  • Hazelcast

    Hazelcast is the leader in operating in-memory computing.

  • Java.Net

    We are an official Java User Group recognised by Oracle's JUG program

  • JRebel

    Free 3 month J-Rebel license.

  • O'Reilly

    40% discount on printed books and 50% on e-books.

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy