What is ENUM?

Answer Posted / pijush

The enum keyword is used to declare an enumeration, a
distinct type consisting of a set of named constants called
the enumerator list. Every enumeration type has an
underlying type, which can be any integral type except
char. The default underlying type of the enumeration
elements is int. By default, the first enumerator has the
value 0, and the value of each successive enumerator is
increased by 1. For example:

Is This Answer Correct ?    23 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can you create a function in c# which can accept varying number of arguments

601


Can abstract class be sealed?

479


Explain the functionalities of satellite assembly?

551


What are the string functions in c#?

522


Can a method return multiple values in c#?

447






In a single .NET DLL how many classes it contains?

514


List out two different types of errors in c#?

529


what are implementation inheritance and interface inheritance?

515


What is view state c#?

519


Why do we need private constructor in c#?

467


What is a collection in c#?

507


What is class in oops with example in c#?

507


How do you comment in c#?

493


What is anonymous methods in c#?

555


What does return do in for loop?

484