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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 19:00, alyssashae1818
Which parts of a presentation should be the most general? a. introduction and conclusion b. introduction and outline c. outline and conclusion d. outline and body
Answers: 1
image
Computers and Technology, 22.06.2019 23:30, Arealbot
To check spelling errors in a document, the word application uses the to determine appropriate spelling. internet built-in dictionary user-defined words other text in the document
Answers: 1
image
Computers and Technology, 23.06.2019 17:00, ayoismeisjjjjuan
The camera still is bad even with the new iphone xr and especially in low light it is even worst because you can see the pixels more if its in low light. if all you apple customers want apple to fix this then lets fill there feedback with complaints about the can apple do to fix this issue?
Answers: 1
image
Computers and Technology, 23.06.2019 19:30, sallybob0
What are loans to a company or government for a set amount of time
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 in other subjects:

Konu
Mathematics, 20.01.2021 17:10
Konu
Spanish, 20.01.2021 17:10
Konu
Mathematics, 20.01.2021 17:10
Konu
English, 20.01.2021 17:10