(The MyPoint class) Design a class named MyPoint to represent apoint with x and y-coordinates. The class contains:
Two data fields x and y that represent the coordinates.
A default constructor that creates a point (0, 0).
A constructor that constructs a point with specifiedcoordinates.
Two get functions for data fields x and y, respectively.
A function move that moves the point to the specifiedcoordinates.
A function named distance that returns the distance from thispoint to another point of the MyPoint type.
Draw the UML diagram for the class MyPoint. Implement the classMyPoint. Write a test program that creates two points (0, 0) and(10, 20.8) and displays
PayPal Gateway not configured
PayPal Gateway not configured