In the example, an enum is created with the name enumExample. It is assigning three values with the constants of 0, 1 and 2. In order to use the previously created enum you can write code such as:
Here is an example of adding an enum to the library from the previous post:
In the example an enum is added to the library’s namespace and will be exposed to the library’s users.