|
@ -29,6 +29,7 @@ public class Professor { |
|
|
public Professor() { |
|
|
public Professor() { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Constructs a new Professor with the specified ID, name, and role. |
|
|
* Constructs a new Professor with the specified ID, name, and role. |
|
|
* |
|
|
* |
|
@ -44,11 +45,15 @@ public class Professor { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public List<Course> getCoursesTaught() {return coursesTaught;} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Retrieves the professor's ID. |
|
|
* Retrieves the professor's ID. |
|
|
* |
|
|
* |
|
|
* @return the unique identifier for the professor |
|
|
* @return the unique identifier for the professor |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
public String getProfessorID() { |
|
|
public String getProfessorID() { |
|
|
return professorID; |
|
|
return professorID; |
|
|
} |
|
|
} |
|
|