0
What data type will be better for a field that need the user to choose one from two or more options?
the scenario is like this, whether a car is for 'private' or 'business' usage. will it be better to use enum or string with switch/if to assign it?
1 Antwort
0
It will be more correct - according to programming agreements - to use an Enum, but you can also use String.
With Enum, though, it will be shorter.