2016-03-10 15:28:03 +01:00
|
|
|
class IfElseIfStatement{
|
2015-10-13 19:25:51 +02:00
|
|
|
method(flag){
|
|
|
|
if(flag){
|
2016-03-10 15:28:03 +01:00
|
|
|
return 0;
|
2015-10-13 19:25:51 +02:00
|
|
|
}else if(flag){
|
2016-03-10 15:28:03 +01:00
|
|
|
return 1;
|
2016-04-29 09:43:36 +02:00
|
|
|
}else{
|
|
|
|
return 2;
|
2015-10-13 19:25:51 +02:00
|
|
|
}
|
|
|
|
}
|
2016-03-10 15:28:03 +01:00
|
|
|
|
2015-10-13 19:25:51 +02:00
|
|
|
}
|