This commit is contained in:
sebi 2025-03-11 09:33:56 +01:00
parent 979dcfc808
commit 1ff031cc69

View File

@ -8,9 +8,9 @@ namespace Exercises_C_Sharp.E28_Classes
{ {
public static void Start() public static void Start()
{ {
//Erstellen Sie die Klasse Funny, sodass "Hallo, das ist super!" auf der Konsole ausgegeben wird. //Erstellen Sie eine neue Instanz der Klasse Funny, sodass "Hallo, das ist super!" auf der Konsole ausgegeben wird.
//Code START //Code START
dynamic funnyClass = -1; Funny funnyClass = new();
//Code ENDE //Code ENDE
Console.WriteLine(funnyClass.Value1 + funnyClass.Value2 + funnyClass.Value3 + funnyClass.Value4); Console.WriteLine(funnyClass.Value1 + funnyClass.Value2 + funnyClass.Value3 + funnyClass.Value4);