Explain the singleton, facade, or handle class design
pattern?
Answer Posted / ash
Singleton - single instance of the class will be used. Many
uses.
facade - simplifying interface(s) into simple interface.
Used in application or presentation layer as api or for
wrapping external third-party api/resource
Handle - one method interface with one "action" argument.
Other arguments can be passed as list for "action". Used
when we dont know upfront which methods we would support and
dont want clients to recompile. Somewhat similar to command
pattern
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why is singleton bad?
What is the gang of four design pattern?
Is mvc is a design pattern?
Give me example of chain of responsibility design pattern?
What are the categories in which the design patterns can be divided?
Is bean a singleton?
What is clean architecture?
5.Develop an entity relationships diagram that identifies physical entity relationships.
What is a lazy initialization in singleton?
Why singleton beans are not thread safe?
What are the 23 design patterns?
What is difference between function oriented design and object oriented design?
4. Identify and bound the SOI’s Operating Environment.
What are the examples of the behavioral design patterns?
Can we make the reference instance non static?