public class Shape implements Cloneable
{
   private int iX, iY;
   public Shape(int pX, int pY)
   {
      iX = pX; iY = pY;
   }
   public Shape clone()
   {
      try
      {
         return (Shape)super.clone();
      }
      catch(CloneNotSupportedException pCloneNotSupportedException)
      {
	 throw new InternalError();
      }
   }
   public int getX()
   {
      return iX;
   }
   public int getY()
   {
      return iY;
   }
   public Shape translate(int pX, int pY)
   {
      return new Shape(iX + pX, iY + pY);
   }
   public boolean equals(Object pObject)
   { 
      return iX==((Shape)pObject).iX && iY==((Shape)pObject).iY;
   }
   public String toString()
   {
      return iX + ":" + iY;
   }
}
