本帖最后由 李健_8 于 2012-10-9 21:07 编辑
class Person1{
private String name;
Person1(String name){
this.name=name;
}
void show(){}
}
class Student2 extends Person1{
Student2(String name){
super(name);
}
void method(){
super.show();
}
}
public static void main(String [] args){
Student2 stu=new Student2(xiaoxiao);//报错 加了双引号还是报错
}
}
//求解释 |