Design the Factory pattern and What is its application ?
Answer / 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 |
What is singleton design pattern in java?
What is the difference between factory and builder design pattern?
Is mvc a software design pattern?
What are the benefits of the proxy in the design pattern?
what is data access layer?
What is the behavioral design pattern?
What do you do to ensure that your design is carried out perfectly from your end?
Why should we not use singleton pattern?
What is the difference between factory and abstract factory design pattern?
How might prototyping be used as part of the SDLC?
What non-visual coding tools are available for web design?
Is singleton a design pattern?