Design the Factory pattern and What is its application ?

Answer Posted / fact pandit

I think the question is on Factory Method Pattern. So I
will go in that direction. However there is another pattern
called the Abstract Factory Pattern which is realted to
Factory Method Pattern.

If we have to hide the "Creation" of an object and its
Concrete type to a client, then the tendency is to
use "Factory Method Pattern".

Normally a factory method is a method that is part of
an "Abstract Factory". Client calls the factory method on
an abstract factory which is a concrete object of an
interface whose type may or may not be known to the client,
to get a concrete object of the interface for product whose
concrete type may or may not be useful to the client.

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the gang of four design pattern?

822


What are the SDLC phases you have invloved ?

2423


What is the use of design patterns?

786


Which design pattern is mostly used in net?

797


What are the most important software design patterns?

838


Which design pattern is mvc?

811


Can we make the reference instance non static?

763


What is viper architecture?

778


What are the 23 design patterns?

915


What is the difference between architecture and design?

798


Explain what is good design?

821


What are the benefits of the proxy in the design pattern?

762


Is singleton an anti pattern?

768


What is singleton and factory pattern?

806


What are the additional productivity features and enhancements included with Quartus II software version 6.0?

2137