Question: Create an Object class Create a player and monster class that inherits from object Player gets Spell points and Heal costs 2 SP Monster gets

Create an Object class
Create a player and monster class that inherits from object
Player gets Spell points and Heal costs 2SP
Monster gets an AC based upon its type.
create an item class.
You get to:
Create some operator overloads:
<< for the Object class (same as printObject function)
<< for the Item class (same as printItem function)
< for the Item class (compares bonus values)
+= for the Item class (adds bonus values and an int and returns an int)

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 Programming Questions!