Best explanation of a Bridge design pattern I've yet to encounter! Great thing was that you showed what happens without it and why you need it, very smart. Also, that lada vs volo bit was brilliant :D
@@RawCoding Console.WriteLine(volvo.Crash("50kmh", "wall")) Console.WriteLine(lada.Crash("30kmh", "bicycle)) Output: "Bumper dent" "Driver and passngers have successfully died of death"
If you have IRobot and IDog and ITable intefaces to create a robot dog and a robot table you would have to implement robot twice. The bridge is having 1 robot that contains the dog or table to prevent class explosion.
Best explanation of a Bridge design pattern I've yet to encounter!
Great thing was that you showed what happens without it and why you need it, very smart.
Also, that lada vs volo bit was brilliant :D
Cheers)) glad you like it
Very clean and to the point. Keep up the good work!
Cheers
I enjoyed your wall art behind you.
Thank you!
Loving this serie so far man, thnks
Thank you for watching
I am sorry but from your tutorial I understood nothing. What is the "Make" exactly? It makes no sense to me.
Make as in the make of the car - what type of the car. Volvo is the make of a car, Audi is the make of a car. The company that makes the car.
@@RawCoding ahhh car brand or manufacturer, cool, got it now!
lada vs volvo implementations are very accurate
Haha they are fun cars
@@RawCoding
Console.WriteLine(volvo.Crash("50kmh", "wall"))
Console.WriteLine(lada.Crash("30kmh", "bicycle))
Output:
"Bumper dent"
"Driver and passngers have successfully died of death"
Thank you 😊
Thank you for watching
I didn't get it. maybe I'm not expert enough to understand this.
If you have IRobot and IDog and ITable intefaces to create a robot dog and a robot table you would have to implement robot twice. The bridge is having 1 robot that contains the dog or table to prevent class explosion.
N I C E
Cheers
👍🏽
)
Please do not code the data as a class for the example. No one codes this way; it only confuses people.