posted 5 years ago
Enum with 3 constants would be 3 singletons ?
Convenient for descriptive data which should have only one instantiation throughout a program.
I personally use it for application menu description.
I can then have several engines to parse the menu structures and render it in different ways
Example:
I use it as well for database table columns description,
then have an SQL engine code generator which can parse those enums and create various SQL queries