JAVA PROGRAMMING LANGUAGE
eclipse software
Extracted text: Part I Create a Wizard class that has properties given below. • String name, int mana, int power. Write the necessary constructor, get & set, and toString methods. Part II Write an attack method for Wizard class that takes an integer parameter, i.e. spentMana. The method returns (spentMana * power) and decreases the Wizard's mana depending on spentMana. Part III Write a battle method for another class (Test) that takes two parameters: (1) Wizard object, (2) an integer monsterHealth parameter. The Wizard object attacks until the monsterHealth down to below zero.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here