日期:2014-05-20 浏览次数:20729 次
public boolean equals(Object obj){ if(obj instanceof Name){ Name name=(Name)obj; return (firstname.equals(name.firstname))&&(lastname.equals(name.lastname)); }else{ return super.equals(obj); } }