From 1220484e31f745b0d413a9a8e9d281978ac76fd2 Mon Sep 17 00:00:00 2001 From: "NBTEMP\\bib" Date: Wed, 19 Aug 2026 13:45:24 +0200 Subject: [PATCH] =?UTF-8?q?User=20klasse=20Gef=C3=BCllt=20mit=20Konstrukto?= =?UTF-8?q?r=20und=20Id=20Generation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Casino/User.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Casino/User.cs b/Casino/User.cs index 36037dd..9f38453 100644 --- a/Casino/User.cs +++ b/Casino/User.cs @@ -8,5 +8,22 @@ namespace Casino { class User { + public string ID { get; } + public string Name { get; set; } + public int Alter { get; set; } + public int Geld { get; set; } + public User(string n, int a) + { + ID = ID_Generation(); + Name = n; + Alter = a; + Geld = 1000; + } + + private string ID_Generation() + { + Guid guid = Guid.NewGuid(); + return guid.ToString(); + } } }