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

What are the SDLC phases you have invloved ?

0 Answers   Infosys, Tech Mahindra,


What is the factory pattern in the design pattern?

0 Answers  


Explain Internal Style Sheets?

1 Answers  


What is difference between GoF and J2EE patterns?

1 Answers   Accenture,


What is meant by design pattern?

0 Answers  






What is synchronizer token pattern?

0 Answers  


how to pring 10 item per page in smartform

0 Answers  


How to test the quality of design ?

1 Answers  


Identify three types of systems or system upgrades that may be ideal candidates for a Waterfall Development Model strategy.

1 Answers  


What are the types of design patterns?

0 Answers  


What is Software development life cycle....??

5 Answers   TCS,


Give the syntax of css?

1 Answers  


Categories