4. Decorator Design Pattern Explanation with Java Coding (Hindi) | LLD System Design

preview_player
Показать описание
Hi, in this video we have covered #decoratorPattern out of many design pattern which is asked in Low level system design interview.

Рекомендации по теме
Комментарии
Автор

I always wondered why "is-a" and "has-a" relationship between objects is even worth mentioning, but now I know just how important they are. It's amazing how a small detail like this can completely change the way we approach programming.

ashutoshkumar
Автор

I worked in both product and service industry of small, medium and large size company, i can see the clear understanding and explanation by the narrator on each of the topic and make an analogy to live code in my work. Very well explained in details, that too free of charge, i recommend these videos to all the freshers or laterals who are working in java for upskilling.

sagar
Автор

Never seen anything like this. You guys can search the entire internet and then you will get to know what he explains, no one explain in that way. Appreciate you work bro. 😃

someshpatel
Автор

Just can not believe that this piece of gem is free on youtube !!
Really appreciate your efforts. :)

dj-a
Автор

Unbelievable that we are getting this video for free of cost.... Awesome explanation.

patrisrikanth
Автор

very good explanation is the best, simplicity is the base here and visual representation is toppings

TECH_PANDA_
Автор

Superb explanation. To recollect decorator pattern, I will remember the pizza example. Thanks a lot of this super useful video.

cybergurucool
Автор

I can totally relate Decorator Design Pattern now, yestarday only i ate the 'PIZZA' now i'm learning and watching it. 😃✌

adityarout
Автор

To easy understanding of layer, we can follow below object instantiations

// Here Customer first adds Farmhouse pizza
// then adds extra cheese on top of if
// then add extra mushroom
// we can pass same BasePizza object to new topping

BasePizza pizza = new Farmhouse();
pizza = new ExtraCheese(pizza);
pizza = new ExtraMushroom(pizza);

rishabhshairy
Автор

Thanks Shrayansh for making these lld videos easier to understand. Apprepriate all your hard work.

PujaSingh-qgln
Автор

Thank you so much for explaining in very detailed manner with code . This helps to understand the topic clearly instead of having doubts..

ShabnamKhan-cjzc
Автор

Nice point : both isA and hasA property is needed! Awesome Explanation!

tarunkundhiya
Автор

I really appreciate your efforts thankyou so much😇😇😇😇👏👏👏👏👏

ayushigupta
Автор

Wish had explored your channel a bit earlier, awesome content on Low-level design(one-stop solution), Just feedback if you can arrange the videos of the playlist in what order to watch it will be really great for people.

yashgupta
Автор

Very good explanation with code...u did awesome job. really thanks a lot.

hbolchatwar
Автор

The way you explain with examples it makes the concept very clear..Keep it up and thank you very much :)

omkarsharan
Автор

Great content. First time i am feeling confident about LLD. Please share your knowledge more with us :)

manashimazumder
Автор

🤯🤯🤯🤯🤯
Swaad hi agya 😋😋😋😛.
Thanks Shreyansh for this Amazing vedio series. Great content. And Beautifully explained.

adhyanneekhra
Автор

Hey Shrayansh, While I do love the information that you share with the rest of us and that too for free.

for this particular question I believe the example is not the best. Create a pizza seems more like a creational pattern than Strategy pattern (Decorator Pattern) something like



class Pizza:
def __init__(self, base='thin') -> None:
self.base = base
self.topping = []


def addKetchup(self):

return self;

def addCheese(self):

return self

def build(self):
return self;



def main():
pizza = Pizza('thick')



In Decorator pattern, the aim is to add extra functionality, so same object can do more things.

sachinmalik
Автор

'Has a' and 'is a' make concept much simpler to understand. Good point you make to explain.

VinayakKhairnar-bboc
welcome to shbcf.ru