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 21:30
Asuccessful format string attack attempted to steal user account information by reading from unauthorized memory. answer the followings with proper explanation a)this attack will lead to violation of which security policies?
Answers: 2
question
Computers and Technology, 22.06.2019 08:30
On the loan worksheet in cell c9 enter pmt function to calculate the monthly payment for the altamonte springs 2018 facilities loan. ensure that the function returns a positive value and set the reference to cells b5 and b6 as absolute references.
Answers: 2
question
Computers and Technology, 22.06.2019 11:00
Which action is good business etiquette? a. switching your cell phone off before you enter a meeting b. keeping your cell phone on low volume before you enter a meeting c. setting a pleasant ring tone on your cell phone before you enter a meeting d. setting a standard ringtone on your cell phone before you enter a meeting
Answers: 1
question
Computers and Technology, 22.06.2019 11:00
The editing of digital photos us about the same level of difficulty as editing an analog photo
Answers: 2
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
History, 22.04.2020 18:58
question
Mathematics, 22.04.2020 18:58
question
Arts, 22.04.2020 18:58
Questions on the website: 13722363