Oct 18, 2019 in C Sharp
Q: What is enum in C#?

1 Answer

0 votes
Oct 18, 2019
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};

Related questions

0 votes
May 6, 2020 in C Sharp
0 votes
Feb 16, 2020 in C Sharp