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
Is singleton an anti pattern?
What is the factory pattern in the design pattern?
Contact a small, medium, and a large contract program within your organization. Interview the Technical Director or Project Engineer to identify the following information: a. Request the individual to graphically depict their development strategy? b. What factors drove them to choose the implementation strategy? c. What were some of the lessons learned from developing and implementing the strategy that would influence their approach next time? d. How was the V & V strategy implemented?
Is bean a singleton?
what are the creational design patterns
What is the use of design patterns?
Can we use an equated value as operands for an MVC ? Reason for the same.
Can we have this pattern implemented using static class?
What is the builder pattern?
What are the benefits of the proxy in the design pattern?
What is the difference between architecture and design?
What is the use of repository pattern?
Explain what is good design?
What is the gang of four design pattern?
What is the difference between proxy and adapter?