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

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};
Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

0 votes
asked May 6, 2020 in C Sharp by SakshiSharma
0 votes
0 votes
asked Feb 16, 2020 in C Sharp by rahuljain1
+1 vote
+1 vote
+1 vote
+1 vote
asked Jan 20, 2020 in C Sharp by AdilsonLima
0 votes
0 votes
asked Oct 18, 2019 in C Sharp by Robin
0 votes
asked Oct 18, 2019 in C Sharp by Robin
...