Question: In this problem let s try to design an action of The Magician in detail. Consider a scene where The Magician punches a bunch of

In this problem lets try to design an action of The Magician in detail. Consider a scene where The Magician punches a bunch of super villains. Write a code where The Magician punches 3 villains: Warlord, Manic and Mayhem.
Build the action such that there is a Mediator class that helps in communicating the initiating and the receiving of the punch.
You can refer the following steps to build the solution:
1. Create the ActionMediator class which has 2 functions: punchingUser which will punch a specific villain and a addUser function which will add a new user
2. Create the GameCharacter class which will declare the functions which will punch and receive the punch by The Magician

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!