0% found this document useful (0 votes)
21 views

Adapter and Facade Design Pattern Notes by Udhayakumar

Uploaded by

uk8489577164
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Adapter and Facade Design Pattern Notes by Udhayakumar

Uploaded by

uk8489577164
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Structural Design Patterns

What classes do we need


What should be the attributes in each class
How different classes communicate with each other

Adapter Design Pattern Today's Agenda


Facade Design Pattern
Use
Intermediate
Layer

Why we need Adapter

Ethernet flapter
To Fm

mF Admin Android
External monitor
third part time

It
wsicostintoommn
NTFE.hn

19fhh Google Cloud


Dependency Inversion

PhoneDe

Ñ.mn mhm Bdd d
N
Alot ofchanges
MILIBAND needed in
main code
Regression
codebase
this affects maintainability of your Testing
Whenever are connecting to a 3rd party api always use an interface
you
Macbook Adapter

Iliad IMEI
2
1
13 HDMI
How to use Adapter design Pattern

ÉhddThhnhT
qnt BanhAu
RID L
boolean
pay

A
boolean fetchAcsC
pity

bookan sendMoney
Adapter17
ICICIBank
44 Bank API 77

one
fty
and ff
ff

filaments
Yarama

ffenanlii t.IE
f
Fm

Money from
send to
money
1 ybapi transfer

ILIC Bartle
patronandthmfaffy f
return
Adpter
it whenever talking to a 3ʳᵈ party API
when to use

Adapter 111 Email

supports 0h4 A YesBank


Macbook

and
Phonede Code

Calendly
Design Pattern

Eye

initiim selles
Service SS
hogistics service 1s
update inventory
orderPlaced 1

ffIffzyiyy
FI.gg

gazing.fi
ns.sendNotif17
Whenever a method class doing too much work
facade you find
instead of doing the work within the class you create a
helper to do that work

orderPlaced1 insupdate Ii
duderPlaced
t.TT
ph on createReqh
1s
II
sendEmail

lootherthing
I
7

You might also like