| Lecture 8 - slide 22 : 26 Program 1 |
package geometric;
/** A clonable Point */
public class Point extends java.awt.Point implements Cloneable {
public Object clone(){
try {
return (super.clone());
}
catch (CloneNotSupportedException e){
return null;
}
} // end clone
public Point(int x, int y){
super(x,y);
}
}
|