单项选择题

Given:
2. interface Machine { }
3. interface Engine { }
4. abstract interface Tractor extends Machine, Engine {
5. void pullStuff();
6. }
7. class Deere implements Tractor {
8. public void pullStuff() {System.out.print("pulling "); }
9. }
10. class LT255 implements Tractor extends Deere {
11. public void pullStuff() {System.out.print("pulling harder "); }
12. }
13. public class LTI55 extends Deere implements Tractor, Engine { }
What is the result (Choose all that apply.)

A.Compilation succeeds.
B.Compilation fails because of error(s) in Tractor.
C.Compilation fails because of error(s) in Deere.
D.Compilation fails because of error(s) in LT255.
E.Compilation fails because of error(s) in LT155.
题目列表

你可能感兴趣的试题

微信扫码免费搜题