java clone问题
hscgr 2008-09-08 04:22:57 public Employee clone() throws CloneNotSupportedException{
//call Object.clone()
Employee cloned=(Employee)super.clone();
//clone mutable fields
cloned.hireDay=(Date)hireDay.clone();
return cloned;
}
这儿为什么是 super.clone() 而不是this.clone()?这儿不应该是employee 的克隆吗?