Search:

Type: Posts; User: Norm

Search: Search took 0.24 seconds.

  1. Replies
    7
    Views
    1,533

    Re: Creating a Point.class

    No problem. I'm sure you'll improve with more experience.
  2. Replies
    7
    Views
    1,533

    Re: Creating a Point.class

    Ask your teacher what he intended. I suggested that setXY() do the same as the constructor.
  3. Replies
    7
    Views
    1,533

    Re: Creating a Point.class

    The constructor needs to save the x,y values it receives.
    The get method should return the current value of the variable. Yours look OK.
    setXY() would be similar to the constructor: save x and y
    ...
  4. Replies
    7
    Views
    1,533

    Re: Creating a Point.class

    Have you looked at the java SE's Point class? The name Point is used by the Java SE. Using the same name will cause confusion.

    What have you tried?
Results 1 to 4 of 4