- enum Season{
- SPRING,
- SUMER,
-
AUTUMN,
- WINTER;
- } 相当于
Class Season{
private static final Season SPRING = new Season();
private static final Season SUMER= new Season();
private static final Season SUMER= new Season();
private static final Season SUMER= new Season();
}
构造方法私有
枚举
最新推荐文章于 2024-03-24 12:41:50 发布