题目内容
class A{
int x=100;
}
class B extends A{
int x=200;
void prt(){
System.out.println("SubClass: "+x);
System.out.println("SuperClass: "+super.x);
}
public static void main(String args[]){
new B().prt();
}
}
查看答案
搜索结果不匹配?点我反馈