In the 2- dimensional plane, a point is described by its two coordinates x and y. It supports these operations...

profileS3D_89

In the 2- dimensional plane, a point is described by its two coordinates x and y. It supports these operations :

 A constructor allowing initialization of both coordinates

 Accessors and mutators to its coordinates

 Translation of a point

a. Write a java class, called MyPoint, that corresponds to such an abstraction of points in the dimensional plane.

b. Provide a tester class that creates one point, then translates and displays its new coordinates.

    • 11 years ago
    • 5
    Answer(1)

    Purchase the answer to view it

    blurred-text
    NOT RATED
    • attachment
      prog.docx
    Bids(0)