1.

Choose the correct statements about enum used in C#.NET?(a) An enum variable cannot have a private access modifier(b) An enum variable can be defined inside a class or a namespace(c) An enum variable cannot have a protected access modifier(d) An enum variable cannot have a public access modifierThis question was posed to me by my school principal while I was bunking the class.This key question is from Enumerations topic in chapter Object Oriented Concepts of C#

Answer» RIGHT option is (c) An enum VARIABLE cannot have a PROTECTED access modifier

For explanation: NONE.


Discussion

No Comment Found

Related InterviewSolutions