Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

Problem Statement: Add the following attributes to the Zombie class... brainLust, strength, intelligence, health, and compassion. They should all be private integers. Add Getters and Setters for all...

1 answer below »

[JAVA]Please create a zombie class with the following directions in the problem. The screenshot is provided. 

Problem Statement:
Add the following attributes to the Zombie class... brainLust, strength, intelligence, health, and compassion. They should all be private integers. Add Getters and Setters
for all fields and add a parameterized constructor that sets the all the fields in the order that they are listed. Next create a method called wholsTheParent that will return
the Zombie's parent class. Finally, create a method called attack that takes an Object that you will have to type cast to a Human. The attack method should reduce the
Human's health by the Zombie's strength. If the Human's health is less than or equal to 3 it should return: damage, the human has died...", otherwise it should return: "The zombie bites the human for damage, the human survives but will be turning soon." "/>
Extracted text: Problem Statement: Add the following attributes to the Zombie class... brainLust, strength, intelligence, health, and compassion. They should all be private integers. Add Getters and Setters for all fields and add a parameterized constructor that sets the all the fields in the order that they are listed. Next create a method called wholsTheParent that will return the Zombie's parent class. Finally, create a method called attack that takes an Object that you will have to type cast to a Human. The attack method should reduce the Human's health by the Zombie's strength. If the Human's health is less than or equal to 3 it should return: "The zombie bites the human for damage, the human has died...", otherwise it should return: "The zombie bites the human for damage, the human survives but will be turning soon."
Answered 33 days After Jun 02, 2022

Solution

Aditi answered on Jul 06 2022
88 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here