Bib1/Admin.java

34 lines
724 B
Java
Raw Normal View History

class Admin {
private final String name = "zabih";
private final String nachname = "Mansuri";
private final int passwort = 1234;
2024-11-19 18:01:56 +01:00
private final String art = "Admin";
// Getter-Methoden
public String getName() {
return name;
}
public String getNachname() {
return nachname;
}
public int getPasswort() {
return passwort;
}
public String getArt() {
return art;
}
@Override
public String toString() {
return "Admin{" +
"Name='" + name + '\'' +
", Nachname='" + nachname + '\'' +
", Passwort=" + passwort +
", Art='" + art + '\'' +
'}';
}
}