26. Bridge Design Pattern | LLD of Bridge Pattern with Example | Low Level Design of Bridge Pattern

preview_player
Показать описание
Bridge Design Pattern is a Structural Design Pattern and today we will see it in depth.

Chapters:
00:00 - Understand Definition and UML
01:52 - Problem which Bridge Pattern Solves
05:56 - Bridge Pattern Explanation in Detail
12:53 - Bridge Vs Strategy Pattern

LLD Basics to Advanced Playlist:

HLD Basics to Advanced Playlist:

Java Basics to Advanced Playlist:

Join this channel to get access to perks:

#systemdesign #designpatterns #amazon #lld
Рекомендации по теме
Комментарии
Автор

Example taken could have been better i feel.

syedjaferk
Автор

Initially I was thinking why new pattern because this seems to be identical to the Strategy Pattern, But you explained the difference of intent nicely. Awesome teaching skills.

Abcnews
Автор

I feel the problem which you described first was not valid, it should be about updating the breathe process rather than adding a new breathe process. Because, for adding we are still creating a new class in bridge pattern. Bridge pattern helps when the breathe process is modified so that we don;t have to change it everywhere.

ayushsrivastava
Автор

Hi Shreyansh,
Can you please give a real-world example of where and how we can use it?

tomorrowcut
Автор

Feels like it's another way of implementinmg dependency inversion principle

abhaykatiyar
Автор

Strategy : Association,
Bridge : Composition

shivamgupta
Автор

Hey, Thank you for the amazing playlist . I have watched all the videos of LLD till now and it has been amazing . Please consider adding Singleton Design pattern (with thread safety too) . Thank you.

EkKiloAloooooooo
Автор

Can u provide link of repo where we can see code for design patterns?

dimpalbhatia
Автор

Hi, I have one question how this code stops me doing this -> new Fiash(new TreeBreathImplementation()) ??

ashishchoksi
Автор

Hey, Thank you once again for another awesome content . I have quick question though. 
do you think that we should always use Bridge pattern instead of Strategy pattern(even though you mention in the video about the intent) because with the Bridge Pattern you are getting
1 - run time behaviour change like strategy pattern
2 - you abstract class can grow independently from actual implementor
I think there is no harm as such right? . feel free to correct me .

harishaseri
Автор

Hi sir
Plz let me know if I am correct or not
In bridge what we do is divide the big class into abstraction and implementor
Sir waitinng for ur reply

yuvhrajverma
Автор

Correction: 8:30
We can't create object of abstract class, we can only create pointer of abstract class

abstract class LivingThings
{

};
class Main()
{
public static void main(String gg[])
{
LivingThings livingThings = new LivingThings(); // instantiation error
}
}

LivingThings fishObject= new Fish(new WaterBreatheImplementation())

1. LivingThings fishObject: It's a pointer to LivingThings (Pointer To Object)
2. new Fish(new Creating Object of Fish class and passing address/reference of object WaterBreatheImplementation to it's parameterized constructor
3. Address of object of Fish will be stored in fishObject pointer, "since base class pointer can store address/reference of object of derived class"

NineTwoFive
Автор

Hey Shreyansh, thanks a ton for this video! However, I had a small doubt, say we start initially without implementing the bridge pattern, at a later point we decide to do so, how would u decide to do it? Of course it is possible, but to be precise can we switch to this pattern as and when required?

paromitadesarkar
Автор

Hi!
You removed a bunch of videos from the LLD design videos such as the parking lot design. Can you please tell me where we can find them again?

nitishvirtual
Автор

According to you, In how many months will you be able to complete this playlist. I know this is high quality material and you are providing it for free but still if you could tell me the time, It would be highly useful to me.

prathamgupta
Автор

Demon slayer fans as soon as he mentioned water breath... Zen shuchu, Mizu no Kokyu, Ju uichi no Kata: Nagi 🌊

chetanraghavv
Автор

Hey shreyansh, wanted to know the topics u cover in Java ( join membership) r u covering multi threading concurrency, spring boot ?

stuti
Автор

Very shallow understanding and unclear explanation. Brush up your fundamentals Shrayansh.

tushargoyal
Автор

Why abstract class have reference of bretheimplementor when class fish could have reference of bretheimplementor and same task can be done easily in same way ?? Why cant have reference of bretheimplementor in fish class itself?

premium
Автор

Hi Shrayansh, how do you take your notes ? It is through some writing pad like Wacom?

adiin-
welcome to shbcf.ru