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
What is the difference between proxy and adapter?
What are the benefits of the proxy in the design pattern?
Contact a small, medium, and a large contract program within your organization. Interview the Technical Director or Project Engineer to identify the following information: a. Request the individual to graphically depict their development strategy? b. What factors drove them to choose the implementation strategy? c. What were some of the lessons learned from developing and implementing the strategy that would influence their approach next time? d. How was the V & V strategy implemented?
Why singleton beans are not thread safe?
Why have we used synchronized here?
Why is singleton bad?
Why is singleton used?
What are the types of participants of the prototype design pattern you will get?
What are the most commonly used design patterns?
Which design patterns have you used in your project ?
What is the design pattern?
Is mvc is a design pattern?
Why do we need singleton pattern?
What is singleton and factory pattern?
What is the prototype design pattern?