Circle copyOfCircle = new Circle(oldCircle);
Circle copyOfCircle = (Circle) oldCircle.Clone();
public class Circle implements ICloneable {
public int radius;
public Circle() {
}
public Circle(Circle target) {
/* super(target); */
if (target != null) {
this.radius = target.radius;
}
}
@Override
public Object clone() {
return new Circle(this);
}
}