Monday, 3 July 2017

Software Engineering: Adaptor Pattern

Structural Pattern - Adaptor Pattern


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.  

Why is this used?
Adaptor lets classes work together that could not otherwise because of incompatible interfaces. 


UML diagram representation

Adapter Pattern UML Diagram
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

Software Engineering: Bad Smells! (Smelly code)

Bad Smells! What are bad smells? This refers to any symptom in the source code of a program that possibly indicates a deeper problem.  ...