public class Point {int x,y;public Point(int x,int y){this.x = x;this.y = y;}public double distance() {return Math.sqrt(x * x + y * y);}public static void main(String args[]) {Point p = new Point(1, 1);System.out.println("p.distance()= " + p.distance()...