我不确定如何在我的复杂类中实现Cloneable接口。我已经实现了可比较的,但我就是想不出可克隆的。我有下面的示例代码,我正在使用它来试着理解它。import java.util.Comparator;
public class Complex implements Cloneable, Comparable
假设我有一个A类和一个从A派生的B{}
{}'B.Clone()' hides inherited member 'A.Clone()'. Use the new keyword if hiding was intended.(1)建议的方式是什么?使用new或将A.Clone()声明为B中的virtual和over