draw uml diagram and implement the class) design a class named mypoint to represent a point with x- and y-coordinates. the class contains: the data fields x and y that represent the coordinates with getter methods. a no-arg constructor that creates a point (0, 0). a constructor that constructs a point with specified coordinates. a method named distance that returns the distance from this point to a specified point of the mypoint a method named distance that returns the distance from this point to another point with specified x- and y-coordinates. a static method named distance that returns the distance from two mypoint draw the uml diagram for the class and then implement the class. write a test program that creates the two points (0, 0) and (10, 30.5) and displays the distance between them.



Answer :

Other Questions