多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

现有:   1. interface Animal {    2.   void eat();   3.  }    4.   5. // insert code here    6.   7. public class HouseCat implements Feline {    8.   public void eat() { }   9. }   和以下三个接口声明:   interface Feline extends Animal { }    interface Feline extends Animal { void eat(); }     interface Feline extends Animal { void eat() { } }    分别插入到第 5 行,有多少行可以编译?()  

  • A、 0
  • B、 1
  • C、 2
  • D、 3
正确答案:C
答案解析:
进入题库查看解析

微信扫一扫手机做题