public class Student extends Person { private int year; public Student() { super(); year = 1; } public Student(String aName, int aYear) { super(aName); year = aYear; } public void reset(String newName, int newYear) { changeName(newName); year = newYear; } public int theYear() { return year; } public void changeYear(int newYear) { year = newYear; } public void writeOutput() { System.out.println("Name: " + theName()); System.out.println("Year: " + year); } public boolean equals(Student otherStudent) { return (this.sameName(otherStudent) && (this.year == otherStudent.year)); } }