startit/Emne 3/ObjectsAndEnums/Program.cs
Geir Okkenhaug Jerstad 62b9bfb0fd Objects and Enums test
2024-11-20 12:52:38 +01:00

30 lines
750 B
C#

namespace ObjectsAndEnums
{
internal class Program
{
static void Main(string[] args)
{
Console.WriteLine("Tester Klasser og Enums");
var box = new Box();
box.Width = 100;
box.Height = 100;
box.Show();
DaysOfWeek day = DaysOfWeek.Monday;
switch (day)
{
case DaysOfWeek.Monday:
Console.WriteLine("Monday");
break;
case DaysOfWeek.Tuesday:
Console.WriteLine("Tuesday");
break;
default: Console.WriteLine("Unknown day");
break;
}
}
}
}