/** a special kind of "Brilliant" student */
// we create a subclass using "extends".
public class Nerd extends Student {
  /** pasttime of student */
  private String pastTime;
  
  public Nerd(String n, int i) {
    // we invoke the constructor for student using "super"
    super(n, i);
    // default pasttime:
    pastTime = "Annoy the Professor";
  }
  //We override the Student method toString() here.
  public String toString() {
    return "I am an incredibly brilliant person!!! " + super.toString() + " I love to " + pastTime;
  }
}
