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
Explain about CTS?
What is namespace in oops?
How do I run a cshtml file?
What are concrete classes?
Explain the difference between “constant” and “read-only” variables used in c#?
Can we inherit static class in c#?
How assembly versioning in .NET prevent DLL Hell problem?
What are virtual classes in c#?
How can you write a class to restrict that only one object of this class can be created (Singleton class)?
What is a decimal c#?
What does dbml mean?
What is decimal in c#?
What are sorted lists?
How many types of variables are there in c#?
What happens during the process of boxing?