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 impedance mismatch and How to solve the problem?
What are the design patterns you know explain?
Is singleton scope thread safe?
Can we have this pattern implemented using static class?
What is the difference between 3 tier and n tier architecture?
What skills do you think are necessary for a UI UX Designer?
What is the design pattern?
What are actually Model,view,Controller in MVC Pattern?
What are the types of participants of the prototype design pattern you will get?
Where should we use singleton design pattern?
What are the languages used in the design pattern?
What is a behavioral design pattern?