问题描述:
[单选]
现有: 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
参考答案:查看无
答案解析:无
☆收藏
答案解析:无
☆收藏
上一篇:回弹模量
下一篇:现有( ) 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 行,有多少行可以编译?
- 我要回答: 网友(216.73.216.42)
- 热门题目: 1.你刚创建了一个扩展访问列表1 2.有教育评估学者提出“评估所依 3.韩国古代文明的摇篮是指()。
