![]() ![]() ![]() A switch statement has the following form: You can do this using a number of consecutive if / else statements, but when the possible choices gets above two or three it is usually easier to use the switch statement. In a number of situations you want to let your instances complete different actions depending on a particular value. ![]()
0 Comments
Leave a Reply. |