OCP 关于enum的坑

1. Enum type can't be extended.

2. Enum's constants must be declared on the first line of the enum type declaration.

3, if there are more than constant declaration, the constant declaration must be ended with semi-colon; 

3. Enum type's constructor must not be declared as public and protected

4. Enum type can have public instance variable

阅读更多
想对作者说点什么? 我来说一句

ocp认证相关

2014年01月15日 140KB 下载

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭