From 890ff080b88f825af6b19f025640b36ac2b59b92 Mon Sep 17 00:00:00 2001 From: fdai7600 Date: Tue, 6 Feb 2024 19:00:38 +0100 Subject: [PATCH] Added Getter for Professor role --- 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 7dc15b1..c1dd274 100644 --- a/src/main/java/org/example/Professor.java +++ b/src/main/java/org/example/Professor.java @@ -29,4 +29,8 @@ public class Professor { public void setName(String name) { Name = name; } + + public String getRole() { + return role; + } }