public class StudentAthlete extends Student {
  
  /** The sport the student plays. */
  private String sport;
  
  // use super(...) to call constructor in the
  // parent class
  public StudentAthlete(String n, int i, String s) {
    super(n, i); // call the Student constructor
    sport = s;
  }
  
  // If there is no explicit call to a parent
  // constructor, then "super()" is automatically
  // called.
  public StudentAthlete() {
    sport = "";
  }
  
  public String getStudyHabits() {
    return super.getStudyHabits();
  }

  
  /** Method overriding: a method in the subclasss
   * with the same header as a method in the parent
   * class.  When determining which method to call
   * for an object of the subclass, look first in
   * the subclass, then in the parent class.
   */ 
  public String toString() {
    return super.toString() + " Sport: " + sport;
  }
  
  public String getSport() {
    return sport;
  }
}
