多选题 Given:
3. class IcelandicHorse {
4. void tolt() {System.out.print("4-beat "); }
5. }
6. public class Vafi extends IcelandicHorse {
7. public static void main(String[] args) {
8. new Vafi() .go();
9. new IcelandicHorse() .tolt();
10. }
11. void go() {
12. IcelandicHorse h1 = new Vafi();
13. hl.tolt()
14. Vafi v = (Vafi) h1;
15. v.tolt();
16. }
17. void tolt() {System.out.print("pacey "); }
18. }
What is the result? (Choose all that apply.)
【正确答案】 B
【答案解析】