interface A {
public int getValue();
}class B implements A {
public int getValue() {
return 1;
}
}class C extends B {
// insert code here
public void add(A a) { a.getValue(); }
}
public int getValue();
}class B implements A {
public int getValue() {
return 1;
}
}class C extends B {
// insert code here
public void add(A a) { a.getValue(); }
}
解决方案 »
- 请问如何在amd64位机子上安装jdk1.5
- 写一个函数,去掉一段html字符串中的标签,取得其中的纯文本。例:<<<<img src=’1.jsp’>test<bbb>test1</bbb>><<aaa>test2结果为<<<testte
- java调用批处理
- 关于JTabel的问题
- 请各位大侠帮忙
- 关于接口的简单使用,请教一下大家!
- 如何用jdbc访问access数据库,请高手给指点.在线等待!
- 构造函数重载并递归调用的问题
- 有做过视频点播系统的吗,能给我点思路吗?
- javafx 和netty 混合使用出现线程不一致问题,求大神指点
- HP面试题没做出来,和大家分享一下。。。
- 谁能教我写一个简单的外挂,可以加分!
public int getValue();
}class B implements A {//实现接口返回1
public int getValue() {
return 1;
}
}class C extends B { //这里是继承
// insert code here
public void add(A a) {
a.getValue(); }
}