public class Student {
 
  /** The student's name. */
  private String name;
  
  /** The student's ID number. */
  private int studentID;
  
  public Student() {
    name = "";
    studentID = 1;
  }
  
  /**
   * Method overloading: The Student constructor
   * is an overloaded method.  There are multiple
   * methods with the same name, but different 
   * parameters.
   */ 
  public Student(String n, int i) {
    name = n;
    studentID = i;
  }
  
  public String toString() {
    return "Name: " + name + " ID: " + studentID;
  }
  
  public String getStudyHabits() {
    return name + ": Time to work...";
  }
  
  public boolean equals(Object o) {
    return o instanceof Student
      && studentID == ((Student) o).studentID;
  }
}
