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 use of repository pattern?
Where should we use singleton design pattern?
What is factory method in design pattern?
4. Identify and bound the SOI’s Operating Environment.
What is difference between function oriented design and object oriented design?
Explain what are 5 common problems in the software development process?
Can you explain singleton pattern?
What is the difference between 3 tier and n tier architecture?
Quartus II software version 6.0 is available for which operating systems (OS)?
What is the use of design patterns?
What is singleton design pattern in java?
Can we make the reference instance non static?
What is the factory pattern in the design pattern?
What is the difference between factory and strategy design pattern?
Give me example of observer design pattern?