erweiterung

This commit is contained in:
2023-03-23 15:55:13 +01:00
parent 33e49f846c
commit 09c8eab938
39 changed files with 1167 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
namespace BeispielGenerischeTypen
{
internal class Program
{
static void Main(string[] args)
{
Stapel<Karte> stapel = new Stapel<Karte>();
Karte karte1 = new Karte("Herz", "König");
Karte karte2 = new Karte("Pik", "Ass");
stapel.Push(karte1);
stapel.Push(karte2);
Console.WriteLine(stapel.Pop().Wert);
Console.WriteLine(stapel.Pop().Wert);
Console.WriteLine(stapel.IsEmpty());
}
}
}