Java에서 파생 클래스의 인터페이스를 구현할 수 있습니까?
public class ParentClass implements SomeInterface {
}
public class ChildClass extends ParentClass {
}
ParentClass parent;
ChildClass child;
그러면 다음과 같은 TRUE 문이 생깁니다.
(parent instanceof SomeInterface) == true
(child instanceof SomeInterface) == true
SomeInterface를 구현할 수 있습니까? ChildClass에서 instanceof 연산자로 확인할 때 false를 반환합니까?
가능하지 않은 경우 해결 방법이 있습니까?