摘要:
// The contents of this file are subject to the Mozilla Public License // Version 1.1 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of ... 阅读全文
posted @ 2018-09-07 17:57
皎陽
阅读(1324)
评论(0)
推荐(0)
摘要:
一般来说,有4中内部类:常规内部类、静态内部类、局部内部类、匿名内部类。 一.常规内部类:常规内部类没有用static修饰且定义在在外部类类体中。 1.常规内部类中的方法可以直接使用外部类的实例变量和实例方法。 2.在常规内部类中可以直接用内部类创建对象 3.代码如下: public class M 阅读全文
posted @ 2018-09-07 17:20
皎陽
阅读(236)
评论(0)
推荐(0)
浙公网安备 33010602011771号