Software Engineering (CS315) Assignments presented in my tutrials.
Using Decorator Design Patterrn strategy solve the following problems. There's a pizza restaurant which presents 4 types of pizza Margherita, Tuna, Cheese and Chicken. The restaurant gives you the following options, which you can add a topping or multiple toppings. In our case, it will be Tomato, Pepper, Olive and Mushroom. So, designing traditional class diagrams will have a drawbacks. Like if the customer asked a cheese pizza with Tomato, Pepper, Olive and Mushroom, it will have a lot of classes, like that:
So, using Decorator Design Pattern Strategy will solve the previous problem. Check this document for more details.