class Point { int x; // x coordinate int y; // y coordinate public Point(int xPos, int yPos) { x = xPos; y = yPos; } int getX() { return x; } void setX(int xPos) { x = xPos; } int getY() { return y; } void setY(int yPos) { y = yPos; } }