Question: Write the follwing Java code using the Decorator pattern (write your own code or I will DISLIKE). Task 3 In Airport there were a game

Write the follwing Java code using the Decorator pattern (write your own code or I will DISLIKE).

Write the follwing Java code using the Decorator pattern (write your own

Task 3 In Airport there were a game so kids can play while waiting for their flights. The game contains different characters, for now there are two different characters (Fighter and Beast). The kids can change the looks of their character by adding different items. The Items available for now are Crown, Shield, Boot and Shirt. Your design should allow for more customization to the characters later on if needed. What is the suitable design pattern to use and why? Draw the UML class diagram. For example we might have Fighter, Fighter with crown and boots, Beast with shirt and so on

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!