The Façade Pattern
Review Questions
1. |
How can a creational pattern help manage object destruction? |
2. |
How can properties help us write a more general-purpose Writer? |
3. |
How can an Abstract Factory help us write a more general-purpose Reader? |
4. |
What is auto_ptr used for? |
5. |
What is special about assignment between auto_ptr objects? |
6. |
We can create a FormModel in a number of ways. One approach is to create Question objects directly and add them. Another way is to create a FormModel from a DataObject. Why would we use one technique instead of the other? |
7. |
Name other examples of façades that we have worked with in the book. Explain why they are façades (or wrappers). |