/**
 * Represents a student with a name and an expected graduation year.
 * Implements the Named interface so students can be used
 * in contexts that require a named object.
 */
public class Student implements Named {
    private String name;
    private int graduationYear;

    /**
     * Constructs a Student with the given name and graduation year.
     *
     * @param name           the student's name
     * @param graduationYear the year the student is expected to graduate
     */
    public Student(String name, int graduationYear) {
        this.name = name;
        this.graduationYear = graduationYear;
    }

    /**
     * Returns the student's name.
     *
     * @return the student's name
     */
    public String getName() {
        return name;
    }

    /**
     * Returns the year the student is expected to graduate.
     *
     * @return the graduation year
     */
    public int getGraduationYear() {
        return graduationYear;
    }
}
