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 singleton design pattern in java?

592


Why have we used synchronized here?

610


What are the most commonly used design patterns?

604


What are the differences between the design patterns and the framework?

600


What is aop design?

578






What is onion architecture?

639


Why is singleton bad?

574


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

1956


What is a behavioral design pattern?

623


What are the 23 design patterns?

721


Write the code for a singleton class?

621


5.Develop an entity relationships diagram that identifies physical entity relationships.

2447


What is the factory pattern in the design pattern?

743


What are the examples of the behavioral design patterns?

602


Explain three types of components comprise an application design?

581