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
Suppose we have file(ps), dont know how many records are there. Move half of the records to 2 files. How can we do?
What are the disadvantages of singleton pattern?
What are the differences between the design patterns and the framework?
What is the factory pattern in the design pattern?
What is aop design?
What is viper architecture?
Did you use ooa/ood methodologies? Did you use design patterns?
Explain what are 5 common problems in the software development process?
What is the difference between factory and abstract factory design pattern?
when performing a functional test on a phone calculator,if pressing on a button does not function what do i do next
Why is singleton used?
What is the difference between 3 tier and n tier architecture?
Which design patterns have you used in your project ?
Are singletons bad?
What is the difference between proxy and adapter?