题目内容
1.publicclassGoTest{
2.publicstaticvoidmain(String[]args){
3.Sentea=newSente();a.go();
4.Gobanb=newGoban();b.go();
5.Stonec=newStone();c.go();
6.}
7.}
8.
9.classSenteimplementsGo{
10.publicvoidgo(){System.out.println(”goinSente.”);}
11.}
12.
13.classGobanextendsSente{
14.publicvoidgo(){System.out.println(”goinGoban”);}
15.}
16.
17.classStoneextendsGobanimplementsGo{}
18.
19.interfaceGo{publicvoidgo();}
Whatistheresult?()
查看答案
搜索结果不匹配?点我反馈