Browse Source

Added coursesTaught attribute to Professor class

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

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

@ -23,9 +23,9 @@ public class Professor {
// Role of the professor in the system
public String role;
/**
* Default constructor.
*/
private List<Course> coursesTaught= new ArrayList<>();
public Professor() {
}
@ -40,6 +40,8 @@ public class Professor {
this.professorID = professorID;
this.Name = name;
this.role = role;
this.coursesTaught = new ArrayList<>();
}
/**

Loading…
Cancel
Save