From a1e42fb861afbb200c67da01da18599db84293df Mon Sep 17 00:00:00 2001 From: Tobias Herbert Date: Tue, 6 Feb 2024 17:51:31 +0100 Subject: [PATCH] Added enhanced constructor to Admin Class --- src/main/java/org/example/Admin.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/org/example/Admin.java b/src/main/java/org/example/Admin.java index bdd8b23..9b9bc76 100644 --- a/src/main/java/org/example/Admin.java +++ b/src/main/java/org/example/Admin.java @@ -7,4 +7,10 @@ public class Admin { public Admin() { } + + public Admin(String name, String id, String role) { + this.name = name; + this.id = id; + this.role = role; + } }