//因为没有为AMERICAN枚举值覆盖toString方法,所以调用默认的toSting方法
cp = ComplexPerson.OTHER;
System.out.println(\"cp.getValue(): \" + cp.getValue());
}
/**一个更复杂的枚举类型*/
enum ComplexPerson{
//枚举值
//CHINESE的value属性为\"中国人\"
CHINESE(\"中国人\"){
public String toString(){
return