What is the output of the below given code?
Public enum WeekDays
public class Demo
public static void Main()
Console.WriteLine(WeekDays.Monday + WeekDays.Tuesday);
Error! C# doesn't allow us to add two members of an enum as shown in the given program. In order to do so we need to overload the plus operator.
Back To Top