Intent
Converts the interface of a class into another interface the clients expect. Adaptor lets classes work together that could not otherwise because of incompatible interfaces.
Converts the interface of a class into another interface the clients expect. Adaptor lets classes work together that could not otherwise because of incompatible interfaces.
Why is this used?
Adaptor lets classes work together that could not otherwise because of incompatible interfaces.
Adaptor lets classes work together that could not otherwise because of incompatible interfaces.
UML diagram representation
https://www.tutorialspoint.com/design_pattern/adapter_pattern.htm
https://www.tutorialspoint.com/design_pattern/adapter_pattern.htm
Source code example
https://www.tutorialspoint.com/design_pattern/adapter_pattern.htm
More to follow...
No comments:
Post a Comment