Search:

Type: Posts; User: Norm

Search: Search took 0.20 seconds.

  1. Replies
    8
    Views
    1,046

    Re: Help me please with Shape hierarchy

    Do you have any more questions?
  2. Replies
    8
    Views
    1,046

    Re: Help me please with Shape hierarchy

    What program does that message come from?


    Can you follow that program's suggestions to change your code to satisfy that program?

    Also try executing the program using the java command so you...
  3. Replies
    8
    Views
    1,046

    Re: Help me please with Shape hierarchy

    Make sure all inner classes are static.

    Please edit your post and wrap your code with code tags:



    **YOUR CODE GOES HERE**


    to get highlighting and preserve formatting.
  4. Replies
    8
    Views
    1,046

    Re: Help me please with Shape hierarchy

    The non static inner classes can only be created in an instance of their enclosing class.
    It should compile if the classes are changed to static by adding the keyword static before the keyword...
Results 1 to 4 of 4