From 334b22e55e1d708d8d1e99dcda30be097dfb95b6 Mon Sep 17 00:00:00 2001 From: Tobias Herbert Date: Tue, 6 Feb 2024 17:57:58 +0100 Subject: [PATCH] Added printAdminInfo to Admin Class --- src/main/java/org/example/Admin.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/org/example/Admin.java b/src/main/java/org/example/Admin.java index 4c0470b..f33b1c1 100644 --- a/src/main/java/org/example/Admin.java +++ b/src/main/java/org/example/Admin.java @@ -33,4 +33,11 @@ public class Admin { public void setRole(String role) { this.role = role; } + + public void printAdminInfo() + { + System.out.println("Name: " + getName()); + System.out.println("ID: " + getId()); + System.out.println("role: " + getRole()); + } }