package com.lovecoding.day11.enum01;

//enum 修饰
public enum Week {

    //1.5 之前 class
    //public static final String  XIN_GQING_YI = "123";   //静态常量

    //1.5 枚举
    XIN_GQING_YI(1,"星期一"),XIN_GQING_ER(2,"星期二");


    //属性 private final
    private final int code;
    private final String desc;


    private Week(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
