问题描述:
[单选]
现有: 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();} 结果为:()
A.1
B.2
C.3
D.4
参考答案:查看无
答案解析:无
☆收藏
答案解析:无
☆收藏
上一篇:现有( ) 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 行,有多少行可以编译?
下一篇: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 行,有多少行可以编译?
- 我要回答: 网友(52.14.195.165)
- 热门题目: 1.东晋书法家王羲之喜好养鹅,著 2.“设计•应用”学习领域第一学 3.指令show interfa