阅读背景:

为什么此代码中的枚举开关需要默认值?

来源:互联网 

Normally, default is not necessary in a switch statement. However, in the following situation the code successfully compiles only when I uncomment the default statement. Can anybody explain why?Normally, default is not necessary in a switch




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: