Browse Source

Added getter for coursesTaught

remotes/origin/fdai7780
fdai7887 11 months ago
parent
commit
11b63c519a
  1. 5
      src/main/java/org/example/Professor.java

5
src/main/java/org/example/Professor.java

@ -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;
} }

Loading…
Cancel
Save