Java - is there a "subclassof" like instanceof?

Posted by msr on Stack Overflow See other posts from Stack Overflow or by msr
Published on 2010-04-23T15:25:04Z Indexed on 2010/04/23 15:53 UTC
Read the original article Hit count: 365

Filed under:
|
|
|

Hello,

Im overriding an equals() method and I need to know if the object is an instance of a Event's subclass (Event is the superclass). I want something like "obj subclassof Event". How can this be made?

Thanks in advance!

© Stack Overflow or respective owner

Related posts about subclass

Related posts about java