switch case is in protected scope

By | July 6, 2015

switch case is in protected scope

Try to write each case within “{” & “}” brackets and it will resolve the issue of protected scope. It will occur when you will perform some instantiation within cases.