visual117
March 21st, 2004, 03:28 AM
hi ,
what's the difference between abstract factory and factory method?
regards,
cooky
what's the difference between abstract factory and factory method?
regards,
cooky
|
Click to See Complete Forum and Search --> : factory method visual117 March 21st, 2004, 03:28 AM hi , what's the difference between abstract factory and factory method? regards, cooky ryadav December 20th, 2004, 06:45 AM Asbtract factory Intent : Isolating the Abstract interface from concrete implementions, Factory Method Intent: Defines Interface for creating objects and lets the subclass to decide about the instantiation of those objects. Andreas Masur December 20th, 2004, 06:50 AM [ Moved thread ] Andreas Masur December 20th, 2004, 06:51 AM Abstract Factory (http://home.earthlink.net/~huston2/dp/factory.html) Factory method (http://home.earthlink.net/~huston2/dp/factoryMethod.html) ryadav December 20th, 2004, 08:10 AM Really it is tricy, we need to think on this, as Intent will not solve this question. Abstract factory : concrete implementation returns the abstract object . Factory factory : complex object returns the abstract implimenation object. these two things remains common in between them, this common thing make us to think about the difference between them.............?????? one difference i can see is in factory method we use virtual constructor concept. there creator implementation is static to the class.......... codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |