Question: C + + why am i getting the following errors in my code? i provided the screenshot of errors and pasted the parts of code
C why am i getting the following errors in my code? i provided the screenshot of errors and pasted the parts of code where I am getting them errors at Please add an explanation why i did it wrong so i can understand better. Thank you in advanced!
character.hpp file
class Character
private:
int atk;
int def;
int hp;
public:
virtual void equipEquip equipment;
virtual void attackCharacter target;
virtual void special;
void setattackint atk
atk atk;
int getattack
return atk;
void setdefenseint def
def def;
int getdefense
return def;
void sethpint hp
hp hp;
int gethp
return hp;
;
class Player : public Character
private:
Equip currentEquipment;
public:
void equipEquip equipment override
setattackcurrentEquipmentgetattackbonus;
setdefensecurrentEquipmentgetdefensebonus;
void attackcharacter target
bool enemy; logic to determine if target is enemy
ifenemy
int updateHealth gethp getattack;
apply damage to target
sethpupdateHealth;
;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
