class Student extends Person {
  String major;

  /* one way (but doesn't work in all cases. more on when
   *     it doesn't work later)
   *
   * notice that the first 4 lines duplicate Person's constructor */
  // Student(String fn, String ln, int a, String e, String maj) {
  //   firstName = fn;
  //   lastName = ln;
  //   age = a;
  //   email = e;
  //   major = maj;
  // }

  Student(String fn, String ln, int a, String e, String maj) {
    /* call Person's constructor to initialize
       firstName, lastName, age, and email */
    super(fn, ln, a, e);
    System.out.println("DEBUG: in Student's constructor");
    major = maj;
  }

  // works, but the first part is a duplicate of Person't about
  // String about() {
  //   return firstName + " " + lastName + ", age " + age + " (" + email + ")" + " majoring in " + major;
  // }

  /* Call Person's about() instead */
  String about() {
    return super.about() + " majoring in " + major;
  }  
}
