欢迎来到求知题库网 求知题库官网
logo
全部科目 > Java认证考试 > Java认证考试综合练习

单项选择题

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

    A.0
    B.1
    C.2
    D.3

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题