 <p>Try to read this articles:</p> <p><a href="http://www.devx.com/getHelpOn/Article/10202/1954" rel="nofollow">Use RTTI for Dynamic Type Identification</a></p> <p><a href="http://en.wikibooks.org/wiki/C++_Programming/RTTI" rel="nofollow">C++ Programming/RTTI</a></p> <p><a href="http://en.wikipedia.org/wiki/Run-time_type_information" rel="nofollow">Run-time type information</a></p>