From 096248de41e2284c2e3c67c9d86cb3d4ad90b7e7 Mon Sep 17 00:00:00 2001 From: fdai7887 Date: Tue, 6 Feb 2024 18:09:35 +0100 Subject: [PATCH] Added getters to Student class --- src/main/java/org/example/Student.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/org/example/Student.java b/src/main/java/org/example/Student.java index 364cc18..122b694 100644 --- a/src/main/java/org/example/Student.java +++ b/src/main/java/org/example/Student.java @@ -17,5 +17,15 @@ public class Student { this.role = role; } + public String getStudentName() { + return StudentName; + } + + public String getStudentID() { + return StudentID; + } + public String getRole() { + return role; + } }