intro to Decorator design pattern| When to use Decorator design pattern | Csharp | dotnet

Поділитися
Вставка
  • Опубліковано 16 жов 2024
  • #csharp #dotnet #designpatterns
    In this video, I am talking about how we can implement Decorator design pattern and when actually we should use this design pattern.
    How SOLID Principal, Inheritence are being used in Decorator design pattern. What is Decorator design pattern. How to implement a decorator design pattern. Easiest way to implement decorator design patterns in dotnet. Intro to decorator design patterns. How to use decorated design patterns. Decorated design patterns. Introduction to Decorator design patterns.

КОМЕНТАРІ • 2

  • @OndrejMusicIsMine
    @OndrejMusicIsMine Рік тому +1

    For sake of this example it would be enough to skip the abstract class BaseCarDecorator and instead of calling base class in legacy calls just call the passed-in carService right?

    • @codewithparveenyadav
      @codewithparveenyadav  Рік тому

      Hey Ondrej, yes that is true if you have only one concrete decorator class you can skip the abstract decorator and directly use your legacy object call from your Concrete decorator class.