Enum are strongly typed constants
If a Program uses set of integral number,consider replacing them with enum ,Otherwise the program become less Readable ,Maintainable
If a Program uses set of integral number,consider replacing them with enum ,Otherwise the program become less Readable ,Maintainable
- The default underlying type of an enum is int
- The default value for first element is zero and get increment by 1
- Enum are value type
Click To Zoom Image-Part1 |
Click To Zoom Image-Part2 |