diff --git a/src/main/java/org/example/Professor.java b/src/main/java/org/example/Professor.java index 793873e..a1dad96 100644 --- a/src/main/java/org/example/Professor.java +++ b/src/main/java/org/example/Professor.java @@ -37,4 +37,13 @@ public class Professor { public void setRole(String role) { this.role = role; } + + @Override + public String toString() { + return "Professor{" + + "professorID='" + professorID + '\'' + + ", Name='" + Name + '\'' + + ", role='" + role + '\'' + + '}'; + } }