What is the output of the below given code ?
public enum WeekDays
public class Demo
public static void Main()
CompareTo() methods belongs to Enum class from which all the enums are inherited . CompareTo method always returns zero when the parameter value and the type on which CompareTo() method is called having same values.
Back To Top