Benutzer können erstellt werden
This commit is contained in:
+9
-9
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user