From 5d3ead7152d457a328027443070c2f53fe27a348 Mon Sep 17 00:00:00 2001 From: fdai7887 Date: Tue, 6 Feb 2024 18:11:55 +0100 Subject: [PATCH] Added setters to Student class --- src/main/java/org/example/Student.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/org/example/Student.java b/src/main/java/org/example/Student.java index 122b694..0383cc3 100644 --- a/src/main/java/org/example/Student.java +++ b/src/main/java/org/example/Student.java @@ -28,4 +28,16 @@ public class Student { public String getRole() { return role; } + + public void setStudentName(String studentName) { + StudentName = studentName; + } + + public void setStudentID(String studentID) { + StudentID = studentID; + } + + public void setRole(String role) { + this.role = role; + } }