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

    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
    Location
    Voorschoten, the Netherlands
    Posts
    13,352
    Blog Entries
    7
    Rep Power
    20

    Default

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

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

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, 12:20 PM
  4. Interface and implementation erorr
    By mihael in forum Advanced Java
    Replies: 1
    Last Post: 12-07-2008, 11:06 AM

Posting Permissions

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