Uebungsaufgaben_ITFA_2_SS_2025/Exercises/E28_Classes/Exercise_1.cs
2025-03-11 09:33:56 +01:00

27 lines
741 B
C#

using System;
using System.IO;
using System.Collections.Generic;
namespace Exercises_C_Sharp.E28_Classes
{
class Exercise_1
{
public static void Start()
{
//Erstellen Sie eine neue Instanz der Klasse Funny, sodass "Hallo, das ist super!" auf der Konsole ausgegeben wird.
//Code START
Funny funnyClass = new();
//Code ENDE
Console.WriteLine(funnyClass.Value1 + funnyClass.Value2 + funnyClass.Value3 + funnyClass.Value4);
}
class Funny
{
public string Value1 = "Hallo";
public string Value2 = ", das";
public string Value3 = " ist";
public string Value4 = " super!";
}
}
}