Browse Source

Added printAdminInfo to Admin Class

remotes/origin/fdai7780
Tobias Herbert 11 months ago
parent
commit
334b22e55e
  1. 7
      src/main/java/org/example/Admin.java

7
src/main/java/org/example/Admin.java

@ -33,4 +33,11 @@ public class Admin {
public void setRole(String role) { public void setRole(String role) {
this.role = role; this.role = role;
} }
public void printAdminInfo()
{
System.out.println("Name: " + getName());
System.out.println("ID: " + getId());
System.out.println("role: " + getRole());
}
} }
Loading…
Cancel
Save