Ask your own question, for FREE!
Computer Science 14 Online
OpenStudy (anonymous):

Can someone please explain a simple self-made example of the Abstract Factory Design Pattern in C++ or Java. Stepwise comments would be great especially which class is the Product, ConcreteProduct, Creator & ConcreteCreator class. The same program written normally without using this design pattern would also be of great help. Also, you need not create the logic for the functions. Leave it empty as long as the flow/structure is understandable.

OpenStudy (nethwa):

The abstract factory design is nothing else than a modular system. You can change every part of the whole machine. E.g. browser UI's: At first you have a simple interface, which is very tidy and clean, till you start making changes. You can download a new skin or put in a whole new appearance. Here you will find a good explanation with code: http://www.oodesign.com/abstract-factory-pattern.html And just to mention: The factory design is fully based on the inheritance. The concrete classes inherit the abstract ones.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!