Hi Aseem, > Why does dynamic_cast fail ?? Worked on my machine. What version of GCC are you using? The only other reason I can think of that it could be failing is if your class A, B, C, D lack virtual functions (which are required for dynamic_cast to work). Sincerely, --Eljay