instanceof keyword usage

Viewed 11616

Is using the instanceof keyword against the essence of object oriented programming? I mean is it a bad programming practice? I read somewhere that using instanceof keyword means that the design may not be that good. Any better workaround?

8 Answers
Related