class Point { double x, y; Point(double x, double y) { this.x = x; this.y = y; } void move(int dx, int dy) { this.x += dx; this.y += dy; } }