| 1. | Which of the following statements are correct about the C#.NET code snippet given below? namespace IndiabixConsoleApplication 1 To define a variable of type enum color in Main(), we should use the statement, color c; . 2 enum color being private it cannot be used in Main(). 3 We must declare enum color as public to be able to use it outside the class Sample. 4 To define a variable of type enum color in Main(), we should use the statement, Sample.color c; . 5 We must declare private enum color outside the class to be able to use it in Main(). |
|||||||
Answer: Option B Explanation: No answer description available for this question. Let us discuss.
|
