Results 1 to 2 of 2
  1. #1
    faw
    faw is offline Member
    Join Date
    Apr 2008
    Posts
    3
    Rep Power
    0

    Default problem with super.tostring()

    pleeeeaaaase i have a problem >>>

    there are 5 classes in this question (shape, circle, cylendor, sequare, rectangle )
    super class is called "shape" ,,,
    this erorr is appear in each class

    ( circle.java:22: tostring(double,int,int,int) in shape cannot be applied to ()
    super.tostring();


    the program: zSHARE - class shape.rar

  2. #2
    theonly is offline Member
    Join Date
    Apr 2008
    Posts
    23
    Rep Power
    0

    Default

    The problem is your toString method requires you to send to it a (double, int, int, int), however you are just calling it by shape.toString().

Similar Threads

  1. Inheritance, methods, and toString...
    By Kreuz14 in forum New To Java
    Replies: 1
    Last Post: 04-01-2008, 11:12 PM
  2. toString method
    By apfroggy0408 in forum New To Java
    Replies: 6
    Last Post: 01-31-2008, 05:08 AM
  3. Arrays.toString
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-01-2007, 10:35 PM
  4. Super CSV 1.20
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 11-27-2007, 09:22 PM
  5. Can i just use toString?
    By cachi in forum New To Java
    Replies: 1
    Last Post: 07-31-2007, 09:32 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
  •