heh heh,
no it's not a homework question !! (i'm lucky i don't get homework ).
just read this statement in Gamma (design patterns ) ,wanted to know
why.
Thanks for your inputs.
regards,
Aman.
"jeffc" <no****@nowhere.com> wrote in message
news:3f********@news1.prserv.net
"Chris Theis" <Ch*************@nospam.cern.ch> wrote in message
news:bj**********@sunnews.cern.ch...
"Aman " <am**@techie.com> wrote in message
news:88************************************@mygate .mailgate.org... why should factory methods be virtual in C++ ?
Because a factory should be able to create different types of objects.
Probably you should think about the reason of using a factory once again.
what would be the impact if they were not ?
You'd have some more worries in your life....
I'm starting to think this was a homework question, verbatim.
--
Posted via Mailgate.ORG Server -
http://www.Mailgate.ORG