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
How is the syntax written to inherit from a class in C#?Give an example ?
Is c# int immutable?
Explain the difference between private and shared assembly?
What are the types of attributes in c#?
What are get and set in c#?
How to use reflection to call generic method?
What is use of abstract class in c#?
What are the different types of classes in c#?
What are native methods?
What is yield in c#?
How do destructors and garbage collection work in c#?
What is the different types of private assembly and shared assembly?
Why do we use overloading in c#?
What is assembly and dll in c#?
What is thread.sleep()?