Imagine these two method signatures:
void rawF(char someFlag);
void enumF(MyFlags someFlag);
The latter is more restrictive since only valid values are allowed MyFlags. In the first case, any character can be transmitted - even if only the values defined in the "constants" are used.
Happy coding.
user166390
source
share