Is it possible to find the size of a derived class object using a base class pointer, when you don\'t know the derived type.
Thank you.
I don't think it can be done, because sizeof works on compile time types. You could define a virtual Size function in the base class and override it for each derived class.
sizeof
Size