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
What is tuple in c#?
What is constants in c#?
What is the difference between dll and lib?
How do you prevent a method from being overridden in c#?
What is escape sequence in c#?
What is static classes?
What is a event in c#?
Why do we use interface in c#?
What is the difference between continue and break statement?
What is the default value of object in c#?
How can we set class to be inherited, but prevent the method from being over-ridden?
List down the access modifiers available in c#?
Difference between debug.write and trace.write?
What is public void in c#?
What is the difference between firstordefault and first?