I thought that enumerations were just an easy way to have a list or a color code or something along those lines. I'm following a tutorial (game from scratch..pang!). In that tutorial he has an enum MenuResult, but after that he puts it before all of his functions like this.
MenuResult is a member of the class MainMenu. So when a member of a class is used outside the class scope it shall be prefixed by the class name as, for example, here