【发布时间】:2012-03-19 10:03:04
【问题描述】:
虽然我试图访问在两个接口中给出的相同方法,但我理解多重继承的概念。示例:-
interface Interface1{
int show();
void display();
}
interface Interface2 {
int show();
void display();
}
class Impl implements Interface1, Interface2 {
// how to override show() and display() methods such that
// i could access both the interfaces
}
【问题讨论】:
标签: java oop multiple-inheritance