Hi,

some time back i faced question like this.
we ca use factory design using factory desing implementation. we can do the same using the shared laibrary, like we will have a static function in the shared laibrary which will be returning pointer to base class object. what is the difference between these two ?

i hope u people got my question.

>what is the difference between these two ?
The only difference is in the details. Assuming your "factory design implementation" is some other variant of the factory pattern from a factory function, you've simply described two ways of doing the same thing.