Course Solutions Uncategorized (Solved) : Need Help Number 2 Using Java Thank 1 Write New Class Called Actor Represents Single Fight Q35182237 . . . .

(Solved) : Need Help Number 2 Using Java Thank 1 Write New Class Called Actor Represents Single Fight Q35182237 . . . .

 

I need help with number 2 using Java, thank you!

1. Write a new class called Actor which represents a singlefighter in combat.

a. All Actors have a name, and a current amount of health.

b. Define a constant STARTINGHEALTH which is equal to 100.

c. The Actor constructor should take a name and set the currenthealth to the constant.

d. Other classes will need to know this Actors name and if theyare dead.

i. At what point would someone die in combat?

2. Provide a method that allows this Actor to take damage.

a. This should take an int parameter and reduce their health bythat much.

b. In

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Answered):Essay Question 114 . . . .(Answered):Essay Question 114 . . . .

<h3>Question Description</h3> <p>-------------------------------------------------------------------------------------<br/></p><p>Earth Science</p><p>-------------------------------------------------------------------------------------<br/></p><p><strong>Essay question: answer the following, providing multiple examples for each part of the question. This should take at least two paragraphs.</strong></p><p>How are melting glaciers “controllers of the