AP Computer Science --- Haas --- MeasureableInterfaceProject
In this assignment you will be modifing the MeasureableInterface project.
Define a new class called Point as follows:
- Point implements the Measureable interface.
- Point has two instance variables: x and y (both integers).
- Point has methods setX, setY and getX, getY which can change
or return the x,y values.
- The getMeasure method in Point returns a points distance
from the origin (0,0).
Modify the class DataSet:
- Add a class called getMininum() which will return
the minimum object of type Measurable.
Change the DataSetTest method to test the above changes.