Bridge Design Pattern in detail | Interview Question (Structural Design Pattern)

preview_player
Показать описание

The Adapter is a structural design pattern that allows objects with incompatible interfaces to collaborate.

🎟 Join this channel to get access to perks:

RECOMMENDED COURSES

BE MY FRIEND:

MY FAVOURITE GEAR:

RECOMMENDED BOOKS:

🎻 MUSIC:

#bridge #designpatterns #softwaredesign #java #DailyCodeBuffer
Рекомендации по теме
Комментарии
Автор

I gotta say that I watched quite a few videos trying to grasp the bridge pattern. After watching this one I can say that I don't have to look further for explanations. It's worth mentioning the specifics of the gang of four: one hierarchy has an abstraction and one/multiple derived abstractions and the other hierarchy has an abstraction (interface) and one/multiple concretions!

Oh, and congrats to Google auto-generated cc, exceptional job!😃

mireazma
Автор

Thank you for great explanation. This is what I've been looking for a whole day😂😂 My question is, defining 2nd hierarchy(video processor) as an interface(not a class) is because it would be used not for itself, but for a parameter for the 1st hierarchy(video)?

accountnew-lofu
Автор

Which build pattern we use mostly broo nice explanation broo

akatskipain
Автор

Hey Shabbir what model of chair do you use? Thanks for the answer. Peace

Scoty
Автор

Explanation is correct but implementation is not at all correct.

Video will be a class first of all and will have it's interface will be an Interface, IVideo, Video will do the dependency injection of IProcessVideo
ProcessVideo will be a separate class and will have 3 different Methods, ProcessHD, ProcessUHD and others
PrimeVideo, Netflix and other classes will implement the IVideoclass and do the processing independently.

Reply in comments if you want the correct implementation

shubhankarpaul