Hi,
I have a bit of a problem of understanding of what I need to do to write this program. Could someone please provide me basic steps of what I should do? Or an example, I"m good at relating and following examples. I believe this is my last assignment for this semester so I wanted to do as well as I could. Any help will be appreciated. Thank you
Design a class named MyPoint to represent a point with x-and y- coordinates. The class contains: Two data fields x and y that represent the coordinates with get methods. A no- arg constructor that creates a point ( 0, 0). A constructor that constructs a point with specified coordinates. Two get methods for data fields x and y, respectively. A method named distance that returns the distance from this point to another point of the MyPoint type. A method named distance that returns the distance from this point to another point with specified - x and y- coordinates. Draw the UML diagram for the class. Implement the class. Write a test program that creates two points ( 0, 0) and ( 10, 30.5) and displays the distance between them. .