| Modifier and Type | Field and Description |
|---|---|
Department |
Course.dept
A department, or "school"
|
| Modifier and Type | Method and Description |
|---|---|
Department |
Student.getMajor()
Getter method for major.
|
static Department |
Department.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Department[] |
Department.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Student.setMajor(Department major)
Setter method for major.
|
| Constructor and Description |
|---|
Course(Department dept,
int num,
java.lang.String name,
Room hall,
Teacher professor)
Initializes a course.
|
Student(java.lang.String firstName,
java.lang.String lastName,
Department major,
java.lang.String PASSWD)
Initializes student with specified major.
|