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


Please Help Members By Posting Answers For Below Questions

Is singleton an anti pattern?

583


What is the factory pattern in the design pattern?

740


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?

2392


Is bean a singleton?

568


what are the creational design patterns

666






What is the use of design patterns?

592


Can we use an equated value as operands for an MVC ? Reason for the same.

2023


Can we have this pattern implemented using static class?

571


What is the builder pattern?

637


What are the benefits of the proxy in the design pattern?

593


What is the difference between architecture and design?

583


What is the use of repository pattern?

577


Explain what is good design?

621


What is the gang of four design pattern?

609


What is the difference between proxy and adapter?

607