博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
java_类承继其他类的内部类例子
阅读量:7071 次
发布时间:2019-06-28

本文共 345 字,大约阅读时间需要 1 分钟。

package ming;class Outer {	class In {		public In(String msg) {			System.out.println(msg);		}	}}public class InTest extends Outer.In {	public InTest(Outer outer) {		outer.super("hello");	}	public static void main(String[] args) {		Outer out = new Outer();		InTest intest = new InTest(out);	}}

转载于:https://www.cnblogs.com/MarchThree/p/3720476.html

你可能感兴趣的文章
Ubuntu修改时区
查看>>
ubuntu crontab 在时间段内随机执行一次
查看>>
Redis 深入
查看>>
移动端开发梳理
查看>>
citup软件安装过程
查看>>
单例模式详解
查看>>
matlab激光SLAM
查看>>
MVC2与MVC3之间的Ajax无刷新提交
查看>>
分布式版本控制系统Git的安装与使用
查看>>
Api接口加签验签
查看>>
hive 一次更新多个分区的数据
查看>>
陶哲轩实分析习题9.1.4
查看>>
团队项目—第二阶段冲刺第一天
查看>>
Windows API 第三篇
查看>>
小组绩效考核
查看>>
领域驱动设计(Domain Driven Design)架构详解
查看>>
es集群数据库~基本安装
查看>>
树链剖分+线段树 BZOJ 1036 [ZJOI2008]树的统计Count
查看>>
贪心 BestCoder Round #39 1001 Delete
查看>>
拓扑排序 POJ 1049 Sorting It All Out
查看>>