java multiple operations depending on the type of the object passed
- by mixm
assuming i create a method which is passed an object, and that method would perform an action depending on the object passed. how should i identify the object?
i thought of using the class name to identify the object, but may be impractical since i could easily change the class name of objects, and generate headaches during future development. am i right?