为什么执行只显示写试卷
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();
}
}