34 lines
724 B
Java
34 lines
724 B
Java
class Admin {
|
|
private final String name = "zabih";
|
|
private final String nachname = "Mansuri";
|
|
private final int passwort = 1234;
|
|
|
|
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 + '\'' +
|
|
'}';
|
|
}
|
|
} |