Identify a suitable Creational Design pattern for the below mentioned scenario . Clearlyprovide the rationale for choosing the pattern chosen . Explain how this pattern shouldbe implemented. Draw an appropriate Class Diagram to illustrate the implementationof selected pattern . Don’t give a generic class diagram for this pattern but make itspecific for that design pattern problem. XYZ is one of a leading restaurant in Oman that delivers Burgers and Cold Coffees. Burgers canbe either a Veg or Non-Veg of several types like tower burger, cheese burger, chicken burgeretc. and will be of different sizes like Regular, Double decker and Jumbo. Cold Coffees can be of several types like Frappuccino, Cold Brew, Iced espresso and mazagran etc. and will be of different sizes small, regular and Grande.
Identify a suitable Creational Design pattern for the below mentioned scenario . Clearly
provide the rationale for choosing the pattern chosen . Explain how this pattern should
be implemented. Draw an appropriate Class Diagram to illustrate the implementation
of selected pattern . Don’t give a generic class diagram for this pattern but make it
specific for that design pattern problem.
XYZ is one of a leading restaurant in Oman that delivers Burgers and Cold Coffees. Burgers can
be either a Veg or Non-Veg of several types like tower burger, cheese burger, chicken burger
etc. and will be of different sizes like Regular, Double decker and Jumbo. Cold Coffees can be of several types like Frappuccino, Cold Brew, Iced espresso and mazagran etc. and will be of different sizes small, regular and Grande.
Step by step
Solved in 2 steps with 1 images