Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I want to ask you a question.How did you draw a class diagram? which tool? Could you show some useful UML plugins for eclipse ? Thank you.
- john
You said: “Now image if we have ten different kind of cars, the implementation logic using inheritance and composition will be impossible to manage” But then you still created 2 classes for each type of car (LuxuryCar & SportsCar). So the this pattern didn’t solve the problem of having ten different kind of cars. Or what did I get wrong here ? Thank you.
- Muhammad Gelbana
I believe you should put “super.assemble();” instead of “car.assemble();” in concrete decorators. But still your tutorial is great! Thank you very much!
- ildar
Pankaj sir multiple design pattern using create Framework? example login Framework
- prakash
The relationship between a car and the decorator is inheritance, doesn’t sound quite right to call a CarDecorator “is a” Car.
- Bal
I think CarDecorator should be an abstract class in order for it to confirm to decorator design pattern ,
- Masoud
Hello. I used your tutorial to implement a Decorator, but found an error: sportsLuxuryCar.assemble(); won’t execute the assemble() method for every Decorator used when creating the instance. So the output of sportsLuxuryCar.assemble(); wont’ be: “Basic Car. Adding features of Luxury Car. Adding features of Sports Car.” but “Basic Car. Adding features of Sports Car.” instead. I think you should correct that in the tutorial, because the chain execution of the assemble() method is useful and should be invoked in constructors in order to work. Thank you!
- Agustín Labaronnie
How to get the features of Luxury Car separately if I need them for another car at my home. I assume the same scenario is for Dosa where you can get plain dosa, dosa with masala and dosa with chutney. So masala and chutney classes extend DosaDecorator. PlainDosa class and DosaDecorator class implements Dosa interface. Now what if i want extra chutney (means only chutney separately) ? Thanks in advance.
- Arun Singh