Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
Modeling Finite Data6:17 with Pasan Premaratne
Now that we know the issues with using strings, let’s rewrite our functions using enumerations. In this video, we’ll take a look at the basic syntax of an enum as well as the concepts behind it.