單項選擇題

現(xiàn)有:  
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

微信掃碼免費搜題