public class
ClassA
implements Cloneable
{ public final Object clone throws CloneNotSupportedException () {
//...
}
public final void clone(){
//...
}
}
Rozwiązanie
Dozwolona jest tylko jedna metoda clone.
public class
ClassA
implements Cloneable
{ public final Object clone throws CloneNotSupportedException () {
//...
}
}