Zweiter Konstruktor für User und Spiele klasse anlegen
This commit is contained in:
+8
-1
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Casino
|
||||
{
|
||||
class User
|
||||
public class User
|
||||
{
|
||||
public string ID { get; }
|
||||
public string Name { get; set; }
|
||||
@@ -19,6 +19,13 @@ namespace Casino
|
||||
Alter = a;
|
||||
Geld = 1000;
|
||||
}
|
||||
public User(string id, string n, int a, int g)
|
||||
{
|
||||
ID = id;
|
||||
Name = n;
|
||||
Alter = a;
|
||||
Geld = g;
|
||||
}
|
||||
|
||||
private string ID_Generation()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user