-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGast.java
More file actions
29 lines (23 loc) · 815 Bytes
/
Copy pathGast.java
File metadata and controls
29 lines (23 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package Tag07.Aufgaben;
public class Gast extends Benutzer {
private int gueltigBis;
public Gast(String benutzername, String email, String passwort) {
super(benutzername, email, passwort);
this.gueltigBis = 0;
}
public Gast(String benutzername, String email, String passwort, boolean aktiv, int gueltigBis) {
super(benutzername, email, passwort, aktiv);
this.gueltigBis = gueltigBis;
}
public boolean getIsAktiv() {
return super.isAktiv();
}
public int getGueltigBis() {
return gueltigBis;
}
@Override
public void info() {
IO.println("Benutzername Gast: " + super.getBenutzername() + "_guest, gültig bis " + this.getGueltigBis() + " Tage.");
IO.println("\nIst aktiv? " + this.getIsAktiv());
}
}