![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 26.03.2020 22:48 jtamika31
Let us consider a PIZZA class which has a method that displays the message "Pizza". A PIZZA object may be decorated by 3 kinds of toppings.
ο· OLIVE class has a method that displays the message "With Olive".
ο· PEPPER class has a method that displays the message "With Pepper".
ο· MASHROOM class has a method that displays the message "With Mashroom".
Use the decorator pattern to create pizzas with toppings.
1) Give the UML class diagram.
2) Provide the implementation code of the UML class diagram given in question 1 in Java.
The object created by the client code should display the following message: "Pizza With Pepper With Olive With Mushroom".
![ansver](/tpl/images/cats/User.png)
Answers: 2
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 20:00
How is the number 372 written when expanded out to place values in the base 8 (octal) number system? a. 2 x 4 + 3 x 2 + 4 x 1 b. 3 x 64 + 7 x 8 + 2 x 1 c. 3 x 8 + 7 x 7 + 2 x 6 d. 3 x 100 + 7 x 10 + 2 x 1
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 21:10
Dameas communication challenge is due to which factor
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 21:30
After you clean an engine with hot water spray, it seems to stall; when it doesn't stall, it's idling noisily. technician a says to check for loose bolts on the flex plate near the torque converter. technician b says to wipe down the spark plug wires and the distributor cap. who is correct? a. technician a b. both technicians a and b c. technician b
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 02:30
What is the power dissipated by a resistor with a current of 0.02 a and a resistance of 1,000 ? a. 200 w b. 20 w c. 0.4 w d. 4 w
Answers: 1
You know the right answer?
Let us consider a PIZZA class which has a method that displays the message "Pizza". A PIZZA object m...
Questions
![question](/tpl/images/cats/istoriya.png)
History, 04.01.2021 21:20
![question](/tpl/images/cats/mat.png)
Mathematics, 04.01.2021 21:20
![question](/tpl/images/cats/mat.png)
Mathematics, 04.01.2021 21:20
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 04.01.2021 21:20
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/es.png)
![question](/tpl/images/cats/fizika.png)
Physics, 04.01.2021 21:20
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/biologiya.png)
Biology, 04.01.2021 21:20
![question](/tpl/images/cats/mat.png)
Mathematics, 04.01.2021 21:20
![question](/tpl/images/cats/mat.png)
Mathematics, 04.01.2021 21:20
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mkx.png)
Arts, 04.01.2021 21:20
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/en.png)
English, 04.01.2021 21:20
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/health.png)
Health, 04.01.2021 21:20