 Everybody it's Brian today we'll be discussing enumerations with the switch statement. So what is an enumeration? Well to find out just type in the word enum and then give it a name and we will say animals and then do a start and end bracket and say birds cats dogs. Now an enumeration allows you to label values and say specific things. Now in memory this will be zero one two but you don't want to say zero one two because you have no idea what zero one two means you'd rather have a more descriptive way like birds cats dogs. Now take our enumeration and we're going to make a variable out of it. So animals m type equal and you're just going to select cats and that is how you say we have a variable of m type which is equal to animal cats. Now notice how you're not saying equal new animals cat this is not a class this is an enumeration. Now we're going to do a switch do m type do case control space and you have your enumerators right there and you just say birds and along with break and we were going to say let's see here you like birds. Now you may have noticed in your copy and pasted ventures you cannot have duplicate cases in a switch statement you get this error right here duplicate case so just delete that select cats and dogs so we have our very simple switch statement we are switching on an enumeration called animals and there's three possible types birds cats dogs we are setting our m type variable to cats and let's run this and see what happens. Sure enough you like cats you can very easily go in and change this and say your dog person run it again you like dogs so that is a very quick and simple example of how to use an enumeration with a switch statement. Oh before we go one thing you should probably notice is this does not have an in bracket even though it doesn't really hurt it and you do not put that inside of your main statement and if you're wondering why you can mouse over and see that the member of numb animals cannot be local it's kind of a funny rule about enumerators well this is Brian thank you for watching I hope you found this video educational and entertaining