I have a basic question with Java interfaces.
Say if I have a interface IA
and interface IB extends IA
now,
class CK implements IB,
class CL implements IB,
class CM implements IB,
... etc
void foo(IA iFace) {
// I know how to check if iFace is of type CK/CL/CM ...
// Is it possible to check if iFace is of type IB ?
}
Hope my question is clear.
Thanks for any replies.