Question: JAVA Create a Student class (Student.java) and a test class (StudentTest.java) which has the following: Instance variables name year totalGrade Constructor to set name and
JAVA

Create a Student class (Student.java) and a test class (StudentTest.java) which has the following: Instance variables name year totalGrade Constructor to set name and year. Getters and setters for name and year. Getter for totalGrade. A method addGrade(int grade) which adds the grade supplied through the parameter to the total grade
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
