public class Point { private int x; private int y; public Point(int a, int b) { this.x = a; this.y = b; } public Point() { } public void move(int dx, int dy) { this.x = this.x + dx; this.y = this.y + dy; } public int getX() { return this.x; } public int getY() { return this.y; } }