问题描述:
[单选]
现有: 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
参考答案:查看无
答案解析:无
☆收藏
答案解析:无
☆收藏
上一篇:现有( ) 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行,有几个可以通过编译?
下一篇:现有( ) interface Animal { void eat(); } //insert code here public class HouseCat extends Feline { public void eat(){ } } 和五个申明 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();} 结果为( )()
- 我要回答: 网友(18.223.43.151)
- 热门题目: 1.提出观察学习理论的心理学家是 2.外币期货之间所以能套期保值, 3.下面哪一个函数不是Trans