/software-engineering-assignments

Software Engineering (CS315) Assignments presented in my tutrials.

Primary LanguageJava

Software Engineering Assignments

Software Engineering (CS315) Assignments presented in my tutrials.

Assignment-1

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:

Screenshot from 2020-04-07 23-23-36

So, using Decorator Design Pattern Strategy will solve the previous problem. Check this document for more details.