Design the Factory pattern and What is its application ?



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

Post New Answer

More Design Patterns Interview Questions

Which Design Patterns you know?

4 Answers   Honeywell,


What is singleton design pattern

1 Answers   CSS, Dimdim, Fulcrum Logic, TCS, Wipro,


What is factory method in design pattern?

0 Answers  


Explain what are 5 common problems in the software development process?

0 Answers  


Hi, I have 9backlogs in btech and i am 2008 passed out,am working with an MNC from past 3 years.now, am willing to do MS, will it be any problem for me?

0 Answers  






what is data access layer?

7 Answers   Honeywell,


What are the design patterns and How can they make life easier for software development ?

1 Answers   ABC, HP,


what is a Design Pattern?

5 Answers   TCS,


What is the prototype design pattern?

0 Answers  


How to add CSS styles Styles to Elements with Particular Attributes?

1 Answers  


Why do we need singleton pattern?

0 Answers  


Why is singleton used?

0 Answers  


Categories