摘要: 匿名内部类顾名思义就是没有名字的内部类。一般用于只需要使用一次,很少被其他地方是使用的类。 第一种方式:抽象类 /** * @author suwan * @date 2020/1/15 */ public abstract class AbstractCat { abstract void smi 阅读全文
posted @ 2020-01-16 13:43 passerby- 阅读(93) 评论(0) 推荐(0) 编辑