62,614
社区成员
发帖
与我相关
我的任务
分享
public class PointDemo extends Person{
public int high = 10;
public static void modify(int a){
;
}
public static void main(String[] args) {
Person p1 = new PointDemo();
System.out.println(p1.high);
}
}
class Person{
public int high = 1;
}
public class PointDemo extends Person{
public int high = 10;
public static void modify(int a){
;
}
public static void main(String[] args) {
PointDemo p1 = new PointDemo();
System.out.println(p1.high);
}
}
class Person{
public int high = 1;
}