What is ENUM?

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


Please Help Members By Posting Answers For Below Questions

How will you allow a class to be inherited, but prevent the method from being over-ridden?

519


What is the difference between inheritance and abstract class?

444


What is a nested type. Give an example?

608


How can you achieve run time polymorphism in C#?

532


Is string null or empty?

503






Is int an object in c#?

506


Can constructor be private c#?

477


What are the 3 types of comments in c#?

517


What debugging tools come with the .NET ssSDK?

683


What is the different types of private assembly and shared assembly?

491


Why do we override in c#?

486


What do you know about device context?

517


Is c and c# the same?

492


What is the difference between virtual and override in c#?

467


In which way you can convert a value-type to a reference-type?

526