Professional Documents
Culture Documents
10.2 Object - Adapter PDF
10.2 Object - Adapter PDF
Object adapter
of
fe
class AdapterObject
e
Object Adapter
Po
«interface»
Target Adaptee
Client
+ operation(): void + myOperation(): void
w
er
Using composition instead of
inheritance
ed
#adaptee
ObjectAdapter
operation
+ operation(): void
adaptee.myOperation()
C
re
w