public class Point { private int x, y; public Point() { this.x=0; this.y=0; } public Point(int fx, int fy) { this.x = fx; this.y = fy; } public Point(Point p) { this.x = p.x; this.y = p.y; } public void setX(int fx) { this.x = fx; } public void setY(int fy) { this.y = fy; } public int getX() { return this.x; } public int getY() { return this.y; } }