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: 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
Get step-by-step solutions from verified subject matter experts
