1public class Student
2{
3 private String name;
4 private int classYear;
5
6 // Constructor goes here
7 public Student(String name, int year){
8 this.name = name;
9 this.classYear = year;
10 }
11
12 public String getName(){
13 return name;
14 }
15
16 public int getClassYear(){
17 return classYear;
18 }
19
20 public String toString(){
21 return name + ", class of " + classYear;
22 }
23}
24