Intent
- ‡Kvb class Gi GKwU interface ‡K client expected interface G convert K‡i|
UML
- wb‡¤œ Adapter pattern Gi UML representation ‡`qv n‡jv
- Client Gi GKwU abstraction reference Av‡Q hvnv n‡jv Target
- Target interface Gi implementation B n‡jv Adapter.
- Adapter Operation method mg~n Adaptee ‡Z delegate K‡i Ges Adaptee SpecificOperation method run K‡i
Real life example
·
GKwU power
adapter hvnv AC power supply K‡i|
·
Adapter Gi responsibility
n‡jv Dnv cÖ‡qvRbvbyhvqx wewfbœ ai‡bi socket
Gi mv‡_ adapt nq|
·
†Zgwb adapter pattern G GKwU class interface
†K client
expected interface Gi
mv‡_ adapt nq|
কোন মন্তব্য নেই:
একটি মন্তব্য পোস্ট করুন