public class
ClassA
implements Cloneable
{{ public final Object clone throws CloneNotSupportedException () {
//...
}
public final void clone(){
//...
}
}
解決方案
應該只有一個 clone 方法。
public class
ClassA
implements Cloneable
{{ public final Object clone throws CloneNotSupportedException () {
//...
}
}