会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
光羽隹
博客园
首页
新随笔
联系
订阅
管理
2021年1月7日
Java内部类
摘要: java内部类 内部类可以实现“java的多重继承”。 1..this与.new .this:如果要生成对于外部类的引用,可以使用外部类.this。 .new:如果想要生成一个类的内部类的对象引用,使用new语法,格式为外部类对象.new 内部类()。如果是静态内部类,则不需要外部类的对象来生成。
阅读全文
posted @ 2021-01-07 17:35 光羽隹
阅读(101)
评论(0)
推荐(0)
2020年12月31日
Interface注意事项
摘要: Interface 成员声明 声明属性,默认static & final 声明方法,默认public interface Instrument { int VALUE = 5; // static & final // Cannot have method definitions: void pla
阅读全文
posted @ 2020-12-31 18:13 光羽隹
阅读(122)
评论(0)
推荐(0)
公告