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
can you create a function in c# which can accept varying number of arguments
Can abstract class be sealed?
Explain the functionalities of satellite assembly?
What are the string functions in c#?
Can a method return multiple values in c#?
In a single .NET DLL how many classes it contains?
List out two different types of errors in c#?
what are implementation inheritance and interface inheritance?
What is view state c#?
Why do we need private constructor in c#?
What is a collection in c#?
What is class in oops with example in c#?
How do you comment in c#?
What is anonymous methods in c#?
What does return do in for loop?