Updated Student.java for inheritance