.Net > Enumerations > Beginner Next/Skip this question

What would be the output of following code snippet?

using System;

class Program
{
    enum MyColorEnum
    {
        Red = 4,
        Blue = 7,
        Green
    };

    static void Main()
    {
        MyColorEnum value = new MyColorEnum();
        value = MyColorEnum.Green;
        Console.WriteLine(value);
        Console.ReadLine();
    }
}
Answers :
Explaination :
social share share on facebook share on twitter share on google plus share on linkedin
Add Comments :

Login

Register

Next Question