Computers and Technology

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".

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 01:00, Timeisjesus
Answer these and get 40 points and brainliest
Answers: 1
image
Computers and Technology, 24.06.2019 10:10, nakeytrag
Which view in a presentation program displays a split window showing the slide in the upper half and a blank space in the lower half?
Answers: 1
image
Computers and Technology, 25.06.2019 06:30, twistedhyperboles
How are slides deleted from a presentation?
Answers: 1
image
Computers and Technology, 25.06.2019 07:00, karena13aguirre
How do the portrait and landscape page orientations in the process of printing a worksheet?
Answers: 1
Do you know the correct 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
Chemistry, 13.01.2020 14:31