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 will you allow a class to be inherited, but prevent the method from being over-ridden?
What is the difference between inheritance and abstract class?
What is a nested type. Give an example?
How can you achieve run time polymorphism in C#?
Is string null or empty?
Is int an object in c#?
Can constructor be private c#?
What are the 3 types of comments in c#?
What debugging tools come with the .NET ssSDK?
What is the different types of private assembly and shared assembly?
Why do we override in c#?
What do you know about device context?
Is c and c# the same?
What is the difference between virtual and override in c#?
In which way you can convert a value-type to a reference-type?