Question Regarding Polymorphism
What is the best way of finding out the runtime class of an object?
More specifically lets say there is a method that takes an Abstract Class as a parameter but the method should behave differently depending on which subclass of the abstract class is actually passed to it at runtime. How could the method know which subclass has actually been passed. Do you use the getClass() method, and if so how should the Class object be used? Or is there a better way?
Thanks for your help, Adam.

