摘要: 枚举: 自定义枚举类 使用enum关键字 不需要提供setXxx方法, 枚举对象通常只读 对枚举对象使用static final, 实现底层优化 枚举对象可有多个属性 package com.gibe; public class Enumeration { public static void ma 阅读全文
posted @ 2021-07-08 18:12 ascertain 阅读(294) 评论(0) 推荐(0) 编辑
摘要: package com.gibe; public class Ersatz { public static void main(String[] args) { // 外部其他类, 使用成员内部类三种方法 Outer outer = new Outer(); outer.mm(); // 外部ins 阅读全文
posted @ 2021-07-08 14:26 ascertain 阅读(39) 评论(0) 推荐(0) 编辑