LelloLello
asked on
Function.
What the following function return in my code ? it's not running?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
check the syntax from http://msdn.microsoft.com/en-us/library/06tc147t.aspx
ASKER
a) joe, b)4 experts, or c)5 experts?
package{
class Room{
private var experts:int = 4;
public function DoThis () : String
{
var messageString : String
switch (experts){
case 0 :
messageString = ' joe’;
case 4 :
messageString = 4 experts ';
case 5 :
messageString = '5 experts ';
} return messageString;
}
}
}