Enum

07.01. Understanding Enum

Enum in C   An Enumerated datatype(Enum) is used to create our own user-defined datatype that contains constant (fixed) values stored in the form of numeric values. It starts at 0 (zero) by default and sequentially incremented by 1. Syntax:

enum ⇒ Keyword enum_name ⇒ Here, enum_name is an identifier, the name of the …

07.01. Understanding Enum Read More »

09.22. Enum in Java

Enum in Java Eclipse: Oxygen Java: 1.8 Enum is used to define a set of constants in java. Not only constant by it could also call any method, constructor associated with it. Which will be seen further in the tutorial. We should always use enum when a variable (especially a method parameter) can only take …

09.22. Enum in Java Read More »