為什么執(zhí)行只顯示寫試卷
package com.zw;
public class Test{
String name;
int socre;
public void play(){
System.out.println("寫試卷");
}
}
package com.zw;
public class student extends Test{
}
package com.zw;
public class zxc {
?public static void main(String[] args) {
Test t=new Test();
t.name="zhangsan";
t.socre=90;
t.play();
}
}
2016-11-17
當(dāng)然只有寫試卷了?
你只有一條輸出語句啊 你又沒輸出別的