The initializers here are not necessary. We could leave off the initializers entirely.
enumMovement{Up,Down,Left,Right}
Here, Up would have the value 0, Down would have 1, etc. This auto-incrementing behavior is useful for cases where we might not care about the member values themselves, but do care that each value is distinct from other values in the same enum.
The initializers here are not necessary. We could leave off the initializers entirely.
But of course, you can still use String enums