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

Suppose we have file(ps), dont know how many records are there. Move half of the records to 2 files. How can we do?

586


What are the disadvantages of singleton pattern?

590


What are the differences between the design patterns and the framework?

602


What is the factory pattern in the design pattern?

744


What is aop design?

580






What is viper architecture?

616


Did you use ooa/ood methodologies? Did you use design patterns?

641


Explain what are 5 common problems in the software development process?

620


What is the difference between factory and abstract factory design pattern?

581


when performing a functional test on a phone calculator,if pressing on a button does not function what do i do next

6844


Why is singleton used?

631


What is the difference between 3 tier and n tier architecture?

609


Which design patterns have you used in your project ?

572


Are singletons bad?

582


What is the difference between proxy and adapter?

613