Intent
Provides a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that makes the subsystem easier to use.
Provides a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that makes the subsystem easier to use.
Why is this used?
A facade decouples a client from a complex subsystem. Whilst the Facade subsystem and uses delegation to perform the work of the facade.
A facade decouples a client from a complex subsystem. Whilst the Facade subsystem and uses delegation to perform the work of the facade.
UML diagram representation
https://www.tutorialspoint.com/design_pattern/facade_pattern.htm
https://www.tutorialspoint.com/design_pattern/facade_pattern.htm
Source code example
https://www.tutorialspoint.com/design_pattern/facade_pattern.htm
More to follow...
No comments:
Post a Comment