Hi Mahesh,
 
Actually I thought myself about a such solution.
But how do you know to what class do you have to cast(dynamic_cast)?
That is the Question! You do not know if you are reading in a "Circle" or a "Line"...
If the implementation is made using typeid or class name I do not really care.
 
Regards,
Andrei 


Express yourself instantly with MSN Messenger! MSN Messenger