19.
A.forget
B.forgets
C.go
D.goes
第1题:
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?()
第2题:
1. public class GoTest { 2. public static void main(String[] args) { 3. Sente a = new Sente(); a.go(); 4. Goban b = new Goban(); b.go(); 5. Stone c = new Stone(); c.go(); 6. } 7. } 8. 9. class Sente implements Go { 10. public void go() { System.out.println(”go in Sente.”); } 11. } 12. 13. class Goban extends Sente { 14. public void go() { System.out.println(”go in Goban”); } 15. } 16. 17. class Stone extends Goban implements Go { } 18. 19. interface Go { public void go(); } What is the result?()
第3题: