摘要: 1、内部类的方法可以访问外部类的数据; 2、定义了成员内部类后,必须使用外部类对象来创建内部类对象,而不能直接去 new 一个内部类对象,内部类 对象名 = 外部类对象.new 内部类( ); 3、内部类可以直接访问内部类的成员变量或方法,但内部类访问外部类的成员变量或者方法时,需要使用this关键 阅读全文
posted @ 2022-04-29 19:36 滑稽的炒饭 阅读(25) 评论(0) 推荐(0)
摘要: 就是顺序表的增删改查,挺有意思的 1 public class SequentialList { 2 3 /** 4 * The maximal length of the list. It is a constant. 5 */ 6 public static final int MAX_LENG 阅读全文
posted @ 2022-04-29 02:00 滑稽的炒饭 阅读(28) 评论(0) 推荐(0)