摘要: 主函数: 实体类: class TestClassEx extends TestClass{ public String leijun = "are you ok?"; } 运行结果: leijun:indian MI fans Process finished with exit code 0 阅读全文
posted @ 2017-07-28 10:04 kincolle 阅读(898) 评论(0) 推荐(0) 编辑
摘要: 主函数: 实体类: class TestClassEx{ private String leijun = "are you ok?"; } 运行结果: leijun:are you ok? Process finished with exit code 0 阅读全文
posted @ 2017-07-28 09:45 kincolle 阅读(2209) 评论(0) 推荐(0) 编辑
摘要: 主函数: 被继承的实体类TestClass: class TestClass{ private int i; public int j; public int getI() { return i; } public void setI(int i) { this.i = i; } public in 阅读全文
posted @ 2017-07-28 08:51 kincolle 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 主函数: 目标实体类: class TestClass{ private int i; private int j; public int getI() { return i; } public void setI(int i) { this.i = i; } public int getJ() { 阅读全文
posted @ 2017-07-28 08:31 kincolle 阅读(257) 评论(0) 推荐(0) 编辑