Question: Need help with this! Java please. Part 2: Character -- Reminder: all data objects should have getters and setters Create a class Character. Character has

Need help with this! Java please. Part 2: Character -- Reminder: allNeed help with this! Java please.

Part 2: Character -- Reminder: all data objects should have getters and setters Create a class Character. Character has attributes Enum: Type and String: name, int: health, int attack. Randomly generate the health between 50 and 100 , include 50 and 100 in the numbers. Randomly generate the attack between 0 and 20 , include 0 and 20 in the numbers. Type is an Enum. Values are: Hero, Villain. Create a toString method with all of the attributes and their values

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!