Results 1 to 2 of 2
  1. #1
    pppriyadarshi is offline Member
    Join Date
    Sep 2011
    Rep Power

    Default Can an Interface have implemented method???

    Can an interface have an implemented method in any ways???

  2. #2
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Richmond, Virginia
    Blog Entries
    Rep Power

    Default Re: Can an Interface have implemented method???

    I'm not entirely sure of what you are asking, but I'm assuming you are asking if some interface can have default implementations of methods. The answer is no. Perhaps look into creating an abstract skeletal class which implements the interface and provides default implementations of the method. I should warn you, however; to be weary of inheritance.

    There was a similar question last night on these forums with a fairly detailed explanation, try looking for it.

Similar Threads

  1. Replies: 4
    Last Post: 05-19-2011, 04:05 PM
  2. Replies: 4
    Last Post: 03-29-2011, 07:34 AM
  3. Interface and abstract method
    By cheesehead11 in forum New To Java
    Replies: 14
    Last Post: 02-08-2011, 07:32 AM
  4. Replies: 5
    Last Post: 09-13-2010, 11:02 AM
  5. A Map implemented with ArrayLists
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-16-2008, 10:29 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