Benutzer können erstellt werden

This commit is contained in:
NBTEMP\bib
2026-09-13 16:51:51 +02:00
parent abd23b4909
commit bf0f703f28
4 changed files with 67 additions and 13 deletions
+9 -9
View File
@@ -13,21 +13,21 @@ namespace Casino
public int Alter { get; set; }
public string Passwort { get; set; }
public decimal Geld { get; set; }
public User(string n, int a, string p)
public User(string name, int age, string passwort)
{
ID = ID_Generation();
Name = n;
Alter = a;
Passwort = p;
Name = name;
Alter = age;
Passwort = passwort;
Geld = 1000;
}
public User(string id, string n, int a,string p, int g)
public User(string id, string name, int age,string passwort, int geld)
{
ID = id;
Name = n;
Alter = a;
Passwort = p;
Geld = g;
Name = name;
Alter = age;
Passwort = passwort;
Geld = geld;
}
private string ID_Generation()