Best way to test if an object is in a set of objects?
Posted
by jdelator
on Stack Overflow
See other posts from Stack Overflow
or by jdelator
Published on 2010-04-29T01:42:00Z
Indexed on
2010/04/29
1:47 UTC
Read the original article
Hit count: 383
I'm trying to avoid using a long else if statement.
Lets say I have an object and I want to test if it's of type ClassA, ClassB, ClassC, etc..?
What is a clean way of doing this?
© Stack Overflow or respective owner