From ae24e15b5cdee91c95b131245d7dee111f44eaa3 Mon Sep 17 00:00:00 2001 From: fdai7600 Date: Tue, 6 Feb 2024 18:59:46 +0100 Subject: [PATCH] Added Setter 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 79295ac..7dc15b1 100644 --- a/src/main/java/org/example/Professor.java +++ b/src/main/java/org/example/Professor.java @@ -25,4 +25,8 @@ public class Professor { public String getName() { return Name; } + + public void setName(String name) { + Name = name; + } }