33 lines
723 B
Java
33 lines
723 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 + '\'' +
|
||
|
'}';
|
||
|
}
|
||
|
}
|