subject

1) design two characters for a game. each character will be defined by it's own class and the two character classes should contain at least four attributes for the character. 2) include methods to get and set each of the character's attributes. save the file as mycharactername. java where mycharactername is the name of your character -- which will also be the name of the class. for example, "ogre". 3) include a method that would engage two character objects in a "fight". this fight method would compare a strength (or similar) attribute between two character objects and return the result of which character object "won" the fight. 4) then write an application (i. e. in which you create at least two characters. in turn, pass each character to a display method that displays the character's attributes and shows the results if the two characters where to "fight".

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:30
Which number on the image above correctly indicates the name of a folder in this url? a.1b.2c.3d.4
Answers: 2
question
Computers and Technology, 22.06.2019 10:20
Shown below is the start of a coding region within the fist exon of a gene. 5'--3' 3'--5' how many cas9 pam sequences are present?
Answers: 1
question
Computers and Technology, 23.06.2019 00:00
Donna and her team of five have invented a new gadget for the science exhibition in their college. which intellectual property right will protect their invention?
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
If joey was single and his taxable income was $9,500, how much would he pay in taxes each year?
Answers: 1
You know the right answer?
1) design two characters for a game. each character will be defined by it's own class and the two ch...
Questions
question
Mathematics, 28.02.2020 06:06
question
Spanish, 28.02.2020 06:06
Questions on the website: 13722361