![]() |
syntactic unit > statement > control flow statement > decision making statement > switch-case statement |
![]() ![]() | ||||
switch-case statement (case statement) | ||||
subject | fact |
switch-case statement | is a synonym of case statement | ![]() |
can be avoided by using polymorphism ![]() | ![]() | |
can omit the keyword default and the default statements if they are not needed | ![]() | |
has example int month; | ![]() | |
has purpose to execute one of a choice of statements depending on the value of a variable | ![]() | |
has syntax switch(integer producing expression) | ![]() | |
is a subtopic of Loops and Decision Making | ![]() | |
is a kind of decision making statement | ![]() | |
is a kind of decision making statement | ![]() | |
statement | is terminated by a semicolon ![]() | ![]() |
should be not more than one line long if possible | ![]() | |
syntactic unit | has syntax rule bold = mandatory | ![]() |