Results 1 to 3 of 3
  1. #1
    rmohindra is offline Member
    Join Date
    Aug 2012
    Posts
    3
    Rep Power
    0

    Default Very basic question - implementing an interface with toString

    Hello all,

    This is a very basic question. In eclipse, I have created an interface with three abstract methods 1. deepCopy() 2. compareTo() 3. toString().

    I create a class that implements the interface, but when I do only the first two methods are generated and toString is not. This is not a critical problem as I can just type out the method declaration for toString but I just wanted to know why the signature doesn't appear on its own like every other method I declare in the interface.

    Thank you

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,266
    Rep Power
    25

    Default Re: Very basic question - implementing an interface with toString

    Is this a question about how to use an IDE?
    There is a section of the forums for IDE. Try posting the question there.

    There is a toString() method defined in the Object class.
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default Re: Very basic question - implementing an interface with toString

    Double post. To respond go here: Very basic question - implementing an interface with toString

    Closing.

Similar Threads

  1. Replies: 4
    Last Post: 08-23-2012, 03:19 AM
  2. NEED HELP in IMPLEMENTING A GIVEN INTERFACE!
    By wasiqjaved in forum New To Java
    Replies: 0
    Last Post: 10-03-2011, 12:40 PM
  3. Implementing Interface
    By mew in forum New To Java
    Replies: 4
    Last Post: 02-16-2010, 03:33 PM
  4. help! implementing an interface
    By manda147 in forum New To Java
    Replies: 28
    Last Post: 11-17-2008, 04:27 AM
  5. Implementing an interface
    By bugger in forum Advanced Java
    Replies: 1
    Last Post: 01-09-2008, 01:35 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
  •