62,614
社区成员
发帖
与我相关
我的任务
分享
package com.test;
public class T {
protected int i = 1;
protected void test() {
System.out.println(12345);
}
}
package com.test;
public class P {
public P() {
T t = new T();
System.out.println(t.i);
t.test();
}
public static void main(String[] args) {
new P();
}
}
package com.test;
class TT extends T {
public TT() {
System.out.println(super.i);
super.test();
}
public static void main(String fff[]) {
new TT();
}
}