2024-11-19 12:59:15 +01:00
|
|
|
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
|
|
|
|
2024-11-19 12:59:15 +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 + '\'' +
|
|
|
|
'}';
|
|
|
|
}
|
|
|
|
}
|