UNB/ CS/ David Bremner/ teaching/ old/ cs1083/ java/ IdStudent.java
public class IdStudent extends Student {
    public IdStudent(int id, String name) {
        super(id, name);
    }

    @Override
    public int compareTo(Student other) {
        return this.id - other.id;

    }
}