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
What is the concurrency design pattern?
Explain what is good design?
Can we use an equated value as operands for an MVC ? Reason for the same.
What are the most important software design patterns?
Explain what are 5 common problems in the software development process?
What are the SDLC phases you have invloved ?
What is factory method in design pattern?
What are the types of participants of the prototype design pattern you will get?
What are the main usage of the patterns?
What is a lazy initialization in singleton?
When should design patterns be used?
4. Identify and bound the SOI’s Operating Environment.
Can we have this pattern implemented using static class?
Why is singleton bad?
What is lexi design pattern?