Package edu.pdx.cs410J.junit
Class Student
java.lang.Object
edu.pdx.cs410J.junit.Student
This class represents a student that may enroll in a section of a
course.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the grade this student received in a given sesion of a course.Returns the grades that this student receivedgetId()
Returns the id of this studentvoid
Sets the grade this student got in a given section of a course
-
Constructor Details
-
Student
Creates a newStudent
with a given id
-
-
Method Details
-
setGrade
Sets the grade this student got in a given section of a course -
getGrade
Returns the grade this student received in a given sesion of a course. Returnsnull
if the student was never enrolled in the course or is no grade was assigned. -
getGrades
Returns the grades that this student received -
getId
Returns the id of this student
-