Results 1 to 2 of 2
  1. #1
    sat123stud is offline Member
    Join Date
    Aug 2011
    Rep Power

    Default interface implementation issue

    two different interface say A and B with both having same method say void display();. Now if a class say x implements interface A and B then how the implementing class will define both the methods.

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Voorschoten, the Netherlands
    Blog Entries
    Rep Power


    The class x only has to implement method display() once; I consider it a fault in the design though ...

    kind regards,

    The only person who got everything done by Friday was Robinson Crusoe.

Similar Threads

  1. ItemStateChanged Interface Implementation
    By collwill in forum New To Java
    Replies: 3
    Last Post: 04-19-2011, 04:36 AM
  2. Interface issue
    By vermio in forum New To Java
    Replies: 5
    Last Post: 07-26-2010, 01:38 PM
  3. Interface Implementation
    By Samyx in forum New To Java
    Replies: 3
    Last Post: 12-02-2009, 01:20 PM
  4. Interface and implementation erorr
    By mihael in forum Advanced Java
    Replies: 1
    Last Post: 12-07-2008, 12:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts