/** Class represeting a point in the plane with integer coordinates */
public class Point2D {
protected int xc, yc; // coordinates
public Point2D(int x, int y) {
xc = x;
yc = y;
}
public int getX() { return xc; }
public int getY() { return yc; }
}