Questions
Here are a few revision questions:
- What is the main advantage of the Decorator pattern?
- Can we decorate a decorator with another decorator?
- What is the primary goal of the Composite design pattern?
- Can we use the Adapter pattern to migrate an old API to a new system in order to adapt its APIs before rewriting it?
- What is the primary responsibility of the Adapter pattern?
- What is the difference between the Adapter and the Façade patterns?
- What is the main difference between an Opaque façade and a Transparent façade?