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.

  • Posted: 4 years ago
  • Due: 15/10/2015
  • Budget: $5

Source link

Leave a Reply

Your email address will not be published. Required fields are marked *