What is ENUM?

Answer Posted / jagwinder singh

An Enumeration is a set of named integer constants. The keyword enum declares an enumerated type.

Here is example:

enum Apple { Jonathan,Goldendel, reddel,winesap}

by default jonathan has value 0,goldendel=1 and so on

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the advantage of dependency injection?

508


What is continue in c#?

520


Can you use all access modifiers for all types?

543


What is unmannaged code and will CLR handle this kind of code or not .

597


Explain About web methods and its various attributes

523






How many variables do you need?

504


Is c# an open source language?

552


What is icollection in c#?

530


What are the problem with .NET generics?

563


How can it prevents DLL Hell assembly versioning in .NET?

538


How does it work?

517


What are the three types of operators?

479


Explain what is copy constructor?

558


What Is An Interface Class?

566


What is the use of regex in c#?

498