From d6cd9c1674fdca07b6f1f95d2663997e577e0a64 Mon Sep 17 00:00:00 2001 From: fdai7600 Date: Tue, 6 Feb 2024 18:59:17 +0100 Subject: [PATCH] Added Getter for Professor Name --- src/main/java/org/example/Professor.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/example/Professor.java b/src/main/java/org/example/Professor.java index 48f8110..79295ac 100644 --- a/src/main/java/org/example/Professor.java +++ b/src/main/java/org/example/Professor.java @@ -21,4 +21,8 @@ public class Professor { public void setProfessorID(String professorID) { this.professorID = professorID; } + + public String getName() { + return Name; + } }