Question
JAVA The needed class name is GamePlay. It has 3 attributes. One attributes name is bond1 and another attributes name is bond2. Both are required
JAVA
The needed class name is GamePlay. It has 3 attributes. One attributes name is bond1 and another attributes name is bond2. Both are required to store the nickname of each player. The other attribute is winner, which is the winner information of the game played between bond1 and bond2 players in the integer data type, 1 indicating bond1, and 2 indicating bond2. All attributes must be initialized in a constructor, bond1 as your first name, bond2 as the first name of your best friend and winner as 1 when bond2 is male, or 2 when bond2 is female. Two methods, whoIsRealJamesBond and main, are required. The Who IsRealJamesBond method has no parameter and no return. If winner is I then, the method displays the message Computer, tell the world that James Bond is your first name us9ng System.out.println() statement with an attribute, else display the message Computer, tell the world that James Bond is first name of your best friend The method main with no return and String[] args parameter should be build to run this program.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started