in C Sharp by
Q:
What is enum in C#?

► Click here to show 1 Answer

0 votes
by
enum keyword is used for declaring an enumeration, which consists of named constants and it is called as enumerator lists. Enums are value types in C# and these can’t be inherited. Below is the sample code of using Enums

Eg: enum Fruits { Apple, Orange, Banana, WaterMelon};
Learn More with Madanswer

Related questions

0 votes
asked May 6, 2020 in C Sharp by SakshiSharma
...