Class Point

java.lang.Object
  |
  +--Point

public class Point
extends java.lang.Object

CLASS: Point
PURPOSE: This class represent a point that contain an x y components (both int)
IMPORT: None
EXPORT: New Class|Point
New Methods|Point,copyClone


Field Summary
 int x
          x component of a point
 int y
          y component of a point
 
Constructor Summary
Point(int x, int y)
          
PRE: None
POST: Construct and initialize a Point object
 
Method Summary
 Point copyClone()
          
PRE: None
POST: Creat a new copy of a Point instance
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

x

public int x
x component of a point

y

public int y
y component of a point
Constructor Detail

Point

public Point(int x,
             int y)

PRE: None
POST: Construct and initialize a Point object
Method Detail

copyClone

public Point copyClone()

PRE: None
POST: Creat a new copy of a Point instance