// point.java // Implementation of point classclass point {   <b>private</b> double x;   <b>private</b> double y;   // Default constructor to create origin   // Pre:  none   // Post: This object represents origin (0.0, 0.0).   public point()    {      x = 0.0;      y = 0.0;   }   // Constructor to create point from parameter coordinates   // Pre:  xCoord and yCoord are double coordinates   // Post: The object represents the point (xCoord, yCoord).   public point(double xCoord, double yCoord)    {      x = xCoord;      y = yCoord;   }   // Method to return distance of this point to origin   // Pre:  The point exists.   // Post: The function returned the distance of the point to origin.   public double DistanceToOrigin()    {     return DistanceToPoint(<b>new point(0.0, 0.0)</b>);   }   // Method to return distance of this point to a parameter point   // Pre:  p is a point.   // Post: The function returned the distance of the point to p.   public double DistanceToPoint(<b>point p</b>)    {     return <b>Math.sqrt</b>(((x - p.x) * (x - p.x)) + ((y - p.y) * (y - p.y)));   }}