Professional Documents
Culture Documents
10.1 Class Adapter PDF
10.1 Class Adapter PDF
10.1 Class Adapter PDF
Class adapter / Two way adapter
of
fe
class Adapter
e
Class Adapter
Po
«interface» Adaptee
Client Target
+ myOperation(): void
+ operation(): void
w
er
ed
Adapter
+ operation(): void operation
this.myOperation()
C
re
‐ This approach ends up being more harmful than useful. We’ll talk more in Pitfalls