// Point.java // Defines a class to represent two-dimensional discrete points. public class Point { private int xCoord; private int yCoord; public Point() { xCoord = yCoord = 0; } public Point( int x, int y ) { xCoord = x; yCoord = y; } public String toString() { return "(" + xCoord + ", " + yCoord + ")"; } public int getX() { return xCoord; } public int getY() { return yCoord; } public void shift( int xInc, int yInc ) { xCoord = xCoord + xInc; yCoord = yCoord + yInc; } }