/** A student member with degree and admissionYear. @author Greg Vogl last modified 2003-10-27 */ public class Student extends Member { // constructors // override defaults public Student (String name, boolean gender, int birthYear, String degree, int admissionYear) { super(name, gender, birthYear); this.degree = degree; this.admissionYear = admissionYear; } // accessors public String getDegree() { return degree; } public int getAdmissionYear() { return admissionYear; } // toString public String toString() { return super.toString() + "[degree=" + getDegree() + ",admissionYear=" + getAdmissionYear() + "]"; } // private variables private String degree; private int admissionYear; }