Best way to test if an object is in a set of objects?
- by jdelator
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?