Distance to Point-To-Point

Write a program that reads the X and Y coordinates of three points and
then outputs which of the three are closer.
Use the following class to store the data for the points:
class Point {
double x;
2double y;
}