Search:

Type: Posts; User: Norm

Search: Search took 0.19 seconds.

  1. Replies
    17
    Views
    3,804

    Re: Create a Balloon object in java

    Your class is supposed to create instances of the other class and call its methods.
    Your testing class shouldn't be based on the other class.
  2. Replies
    17
    Views
    3,804

    Re: Create a Balloon object in java

    It should be up to you How you name the Ballon2 objects in the tester code unless the instructor has told you what names to use.

    I don't know what the use of a BallonTester object is. If the code...
  3. Replies
    17
    Views
    3,804

    Re: Create a Balloon object in java

    What is that code for? It looks like a constructor for the BallonTester class. Is that right?
    Where is it supposed to be used? What other class will use that constructor to create an instance of...
  4. Replies
    17
    Views
    3,804

    Re: Create a Balloon object in java

    Take a look at the tutorial on constructors:
    Providing Constructors for Your Classes (The Java™ Tutorials > Learning the Java Language > Classes and Objects)
    Passing Information to a Method or a...
  5. Replies
    17
    Views
    3,804

    Re: Create a Balloon object in java

    Did you look at line 87 in the BallonTester program? It has the following statement which caused the above error.


    throw new UnsupportedOperationException("Not supported yet.");
    If you don't...
  6. Replies
    17
    Views
    3,804

    Re: Create a Balloon object in java

    Is it working now?
Results 1 to 6 of 6