There is no built-in method of declaring an enumeration with string values . If we want to declare an enumeration with string constants, we can use the enum class and an extension function to achieve this goal.
There is no built-in method of declaring an enumeration with string values . If we want to declare an enumeration with string constants, we can use the enum class and an extension function to achieve this goal.