I kind of wonder why a lot of places ask about esoteric, weird quirks in the C++ language. If you know or can figure out what's going on under the hood, shouldn't it be enough to be able to solve the problem? I don't get why people ask this stuff. I spent more time as an EE, and we never ever used RTTI. But the latest craze in these interview questions is to ask about typelib or RTTI. Who in their right mind would work in RTTI into any sort of code that was doing anything practical at all? A lot of embedded compilers don't even support RTTI, and I don't encounter it all that often even in open source code. Can someone out there give me a use-case where RTTI is practical in our industry for modeling a problem?
An attempt at Reflection: http://www.codeproject.com/KB/library/vcf_rtti.aspx http://stackoverflow.com/questions/851323/reflection-in-c They ask these questions because: - If it is a quant related job (quant analyst/developer/trader/whetever) then its a quant macho thing. - The people in charge of interviews are Bozos! Have you ever looked at any quant code? Enough said. PS. I am not a software guy, I just had to learn this sheah post haste after graduate school.