观于compareTo方法的重写
public int compareTo(Student arg0) {
// TODO Auto-generated method stub
return this.id.compareTo(arg0.id);
}
请问:第三行的compareTo方法是否被重写?
public int compareTo(Student arg0) {
// TODO Auto-generated method stub
return this.id.compareTo(arg0.id);
}
请问:第三行的compareTo方法是否被重写?
2016-04-19
举报