2014-07-15 2 views

답변

1

다른 인터페이스와 같습니다.

그리고 런타임에 개체를 확인하는 데 사용됩니다. 예를 들어

:

그리고 다른 곳 Runtime

if (SomeObjImpMarkerInterface instanceof SomeMarkerInterface) { 
     // Hey this object is that type 
    } else { 
     // Not that type. 
    } 
같은 목적을 실현
관련 문제