“图书”这个类拥有一项枚举类型的属性。
The Book class has an attribute whose type is that of an enumeration.
创建一个定制类,使其名称与枚举名称相同。
Create a custom class with the same name as the enumeration name.
在创建映射时,必须为枚举的键传入这个类。
When you create the map, you must pass in the class for the enumerated key.
正像for - each循环一样,枚举也要求来自类库的支持。
Just like the for-each loop, enumerations require support from the class library.
这是一个直接可用其所定义类的枚举网络的源码,非常好!
This is a direct definition it can be enumerated categories of network source, very good!
Class是实际的类,比如实现枚举接口的类。
Class is the actual class, such as a class that implements the enumeration interface.
在其自己的声明中重新定义了类、结构、联合或枚举。
A class, structure, union, or enumeration is redefined in its own declaration.
“枚举”项拖到类图上。
类型是类、接口或枚举。
类型是类、接口或枚举。
应用推荐