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
PayPal Gateway not configured
PayPal Gateway not configured