Clone this object. Call super.clone() to do the work try { return super.clone(); } catch (CloneNotSupportedException ex) { System.out.println("Now that's a surprise!!"); throw new InternalError(ex.toString()); }
try { return super.clone(); } catch (CloneNotSupportedException ex) { System.out.println("Now that's a surprise!!"); throw new InternalError(ex.toString()); }
Display the current object as a string return "Clone1[" + x + "," + y + "]";
return "Clone1[" + x + "," + y + "]";