public class Table implements Cloneable{
private Point center;
public void setCenter;
public Point getCenter(){
return center;
}
public Object clone()throws CloneNotSupportedException{
Table table=(Table)super.clone();
if(this.center!=null){
table.center=(Point)center.clone();
}
return table;
}
}