Thanks for all your hard work. With due respect i would like to add a suggestion as you are giving example first and not continuing the same on code creates confusion
Thanks for the video. If I want to implement a new functionality like getting a DoubleOfferPrice functionality inheriting from OfferPrice class how will I implement this?
Nice video - But you call the Suzuki class and not the Hundai you have in your presentation - just info. Question - why are you making a variable from you interface - "private ICar car" - can anybody help?
In this case, both the base class and derived class have their own constructors, so the process is complicated because the constructors of both classes must be executed. To overcome this situation C# provides a keyword known as a base keyword. With the help of the base keyword, the derived class can call the constructor which is defined in its base class. Tip: When you have added a constructor with parameters in a base class, you have to add a constructor without parameters on your own -- such a constructor will not be created by default in this case.
Sorry this was not very good, with all due respect, you did not make the Decorator pattern clear at all. the code never talked about Suzuki as a class, otherwise the code runs if you change Suzuki to Hyndai maybe it was from another video IDK. where are the layers? Decorator should be about layering, you talk about ice cream for 100$ a scoop but never implement the concept
The best and the cleanest explanation... ❤
Thanks for all your hard work. With due respect i would like to add a suggestion as you are giving example first and not continuing the same on code creates confusion
very useful video. Thank you sir for the detailed video.
Thanks for the video. isn't CarDecorator should ONLY expose ICar interface?
Thanks for the video. If I want to implement a new functionality like getting a DoubleOfferPrice functionality inheriting from OfferPrice class how will I implement this?
Nice video
Nice video - But you call the Suzuki class and not the Hundai you have in your presentation - just info.
Question - why are you making a variable from you interface - "private ICar car" - can anybody help?
It will be great if you can discuss how we can replace Decorator Pattern with Builder Pattern.
Thank you
$250 for some ice cream?!
public OfferPrice(ICar car) : base(car)
{
} why we have created this constructor
In this case, both the base class and derived class have their own constructors, so the process is complicated because the constructors of both classes must be executed.
To overcome this situation C# provides a keyword known as a base keyword.
With the help of the base keyword, the derived class can call the constructor which is defined in its base class.
Tip: When you have added a constructor with parameters in a base class, you have to add a constructor without parameters on your own -- such a constructor will not be created by default in this case.
Sorry this was not very good, with all due respect, you did not make the Decorator pattern clear at all. the code never talked about Suzuki as a class, otherwise the code runs if you change Suzuki to Hyndai maybe it was from another video IDK. where are the layers? Decorator should be about layering, you talk about ice cream for 100$ a scoop but never implement the concept
This is the first comment on this video.