Define the enumeration in the main program block, inside a class, inside a package, or in a function.
在主程序块、类、包或函数内部定义枚举。
Enumeration declarations are allowed only in the main program block, inside classes, inside packages, or in functions.
只允许在主程序块、类、包或函数内部使用枚举声明。
Class declarations are allowed only in the main program block, inside other classes, inside packages, or in functions.
只允许在主程序块、其他类、包或函数内部使用类声明。
应用推荐