Class Section

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

public class Section extends Object
This class represents a section of a course being offered in a given term during a given year.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The fall term
    static final int
    The spring term
    static final int
    The summer term
    static final int
    The winter term
  • Constructor Summary

    Constructors
    Constructor
    Description
    Section(Course course, int term, int year)
    Creates a new section of a course being offered in the given term and year.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Enrolls a student in this section
    void
    Drops a student from this section
    int
    Returns the number of students enrolled in this section
    Returns the course being offered
    Returns the students enrolled in this section
    int
    Returns the term in which this section is offered
    int
    Returns the year in which this section is offered

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait