Kommentiert und getestet

This commit is contained in:
2024-01-19 10:27:20 +01:00
parent 39b9266067
commit c358366869
6 changed files with 86 additions and 15 deletions

View File

@@ -10,7 +10,7 @@ public class Account {
// region Felder
private String passwort;
private transient int id;
private /*transient*/ int id;
private String name;
@@ -65,5 +65,17 @@ public class Account {
else if (this instanceof ElternAccount)
rid = 1;
}
public Account(int id, String passwort, String name, String email) {
this.id = id;
this.passwort = passwort;
this.name = name;
this.email = email;
if(this instanceof MitarbeiterAccount)
rid = 0;
else if (this instanceof ElternAccount)
rid = 1;
}
// endregion
}