java multiple operations depending on the type of the object passed
Posted
by mixm
on Stack Overflow
See other posts from Stack Overflow
or by mixm
Published on 2010-05-03T13:57:04Z
Indexed on
2010/05/03
14:08 UTC
Read the original article
Hit count: 221
java
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?
© Stack Overflow or respective owner