摘要:
主函数: 实体类: class TestClassEx extends TestClass{ public String leijun = "are you ok?"; } 运行结果: leijun:indian MI fans Process finished with exit code 0 阅读全文
摘要:
主函数: 实体类: class TestClassEx{ private String leijun = "are you ok?"; } 运行结果: leijun:are you ok? Process finished with exit code 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 阅读全文
摘要:
主函数: 目标实体类: class TestClass{ private int i; private int j; public int getI() { return i; } public void setI(int i) { this.i = i; } public int getJ() { 阅读全文