diff --git a/src/main/java/org/example/Professor.java b/src/main/java/org/example/Professor.java index ad7b358..464757e 100644 --- a/src/main/java/org/example/Professor.java +++ b/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 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<>(); + } /**