내가 말하고 싶은 건:
interface B {...}
interface A extends B {...} // allowed
interface A implements B {...} // not allowed
나는 그것을 봤는데 이것을 발견 했다 .
implements인터페이스의 메소드에 대한 구현을 정의하는 것을 나타냅니다. 그러나 인터페이스에는 구현이 없으므로 불가능합니다.
그러나 인터페이스는 100 % 추상 클래스이고 추상 클래스는 메서드를 구현하지 않고도 인터페이스 (100 % 추상 클래스)를 구현할 수 있습니다. "인터페이스"로 정의 할 때 문제는 무엇입니까?
세부적으로
interface A {
void methodA();
}
abstract class B implements A {} // we may not implement methodA() but allowed
class C extends B {
void methodA(){}
}
interface B implements A {} // not allowed.
//however, interface B = %100 abstract class B