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 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:
Create the ActionMediator class which has functions: punchingUser which will punch a specific villain and a addUser function which will add a new user
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
