Class Student

java.lang.Object
edu.pdx.cs410J.junit.Student

public class Student extends Object
This class represents a student that may enroll in a section of a course.
  • Constructor Details

    • Student

      public Student(String id)
      Creates a new Student with a given id
  • Method Details

    • setGrade

      public void setGrade(Section section, Grade grade)
      Sets the grade this student got in a given section of a course
    • getGrade

      public Grade getGrade(Section section)
      Returns the grade this student received in a given sesion of a course. Returns null if the student was never enrolled in the course or is no grade was assigned.
    • getGrades

      Returns the grades that this student received
    • getId

      public String getId()
      Returns the id of this student