clarification between design patterns
Posted: Fri Nov 24, 2006 5:59 am
in structural patterns, there are
1. adapter pattern
2. facade pattern
both these patterns appear to be similar
1. as i understand from adapter pattern, we are developing a new interface for a client as the client is not happy with the interface provided by functionality providing class
2. facade is, when there is a huge set of classes and you develop a set of interfaces so that you can easily avail services provided by those classes.
Can anybody explain me when you would choose one of these patterns for a problem?
1. adapter pattern
2. facade pattern
both these patterns appear to be similar
1. as i understand from adapter pattern, we are developing a new interface for a client as the client is not happy with the interface provided by functionality providing class
2. facade is, when there is a huge set of classes and you develop a set of interfaces so that you can easily avail services provided by those classes.
Can anybody explain me when you would choose one of these patterns for a problem?