I have an assignment that's due tomorrow and I am completely stuck and was hoping to get some help. My assignment is to create a Point object that represents an x,y point. Here is an outline of the object that the teacher gave us. Any help would be much appreciated! -Jon
The instance data stores its x and y coordinates.
The constructor lets you set x and y when you create a Point.
There is a method called getX for asking a Point what its x-coordinate is.
There is a method called getY for asking a Point what its y-coordinate is.
There is a method called setXY that lets you change the coordinates of a Point.