Enumerations (Enums)
In the last chapter Structs, we learned how to group related data together into custom data types. Now, let's explore enums, which allow us to define a type that can have one of several possible values.
The "Traffic Light" Analogy
Imagine a traffic l...
tusharpamnani7.hashnode.dev5 min read