/*
 * Course:       CSCI 215
 * Title:        Lab 1
 * Description:  DrawPad
 * Author:       Yu Chong
 * Copyright (c)2001 Yu Chong.  All Rights Reserved.
 */

/**
 * CLASS:    Point<BR>
 * PURPOSE:  This class represent a point that contain an x y components
 *           (both int)<BR>
 * IMPORT:   None<BR>
 * EXPORT:   New Class|Point<BR>New Methods|Point,copyClone<BR>
 */
public class Point
{
  //Public Attributes
  /** x component of a point*/
  public int x=0;
  /** y component of a point*/
  public int y=0;

  /** <BR>
   *  PRE:  None<BR>
   *  POST: Creat a new copy of a Point instance<BR>
   */
  public Point copyClone()
  {
    Point newPoint = new Point(x,y);
    return newPoint;
  }

  /** <BR>
   *  PRE:  None<BR>
   *  POST: Construct and initialize a Point object<BR>
   */
  public Point(int x, int y)
  {
    this.x = x;
    this.y = y;
  }
}
