From f12679beebbbb13f15d1b661013f67060a244abe Mon Sep 17 00:00:00 2001 From: fdai7887 Date: Tue, 6 Feb 2024 18:07:52 +0100 Subject: [PATCH] Added enhanced constructor to Student class --- src/main/java/org/example/Student.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/org/example/Student.java b/src/main/java/org/example/Student.java index 7cc6edd..364cc18 100644 --- a/src/main/java/org/example/Student.java +++ b/src/main/java/org/example/Student.java @@ -11,4 +11,11 @@ public class Student { } + public Student(String name, String id, String role) { + this.StudentName = name; + this.StudentID = id; + this.role = role; + } + + }