Suppose the Dog and Animal classes are imported and both have run and eat methods defined with no parameters.  Given the following code: 11 Dog fido; 12 Animal simba = new Animal(); 13 simba.run(); 14 fido.eat(); 15 fido.run(); Which line will cause an error?单项选择题

A

none of these lines of code will cause an error

B

I don't know

C

14

D

15

E

13

F

12

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

类似问题

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!