What is the output of the following program ?
public enum WeekDays
public class Demo : WeekDays
public static void Main()
Error! That's because classes cannot be derived from enums. Enums are treated as sealed classes and hence all rules that are applicable to sealed classes also apply to enums.
Back To Top