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 bean a singleton?
What are the main usage of the patterns?
What is meant by design pattern?
Can we inherit singleton class?
What is lexi design pattern?
Explain what are 5 common problems in the software development process?
Why is singleton bad?
What is viper architecture?
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?
Give me example of chain of responsibility design pattern?
Give me example of observer design pattern?
What is proxy in design pattern?
Why have we declared the instance reference volatile?
Why do we need singleton pattern?
Suppose we have file(ps), dont know how many records are there. Move half of the records to 2 files. How can we do?