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 equip(Equip* equipment)=0;
virtual void attack(Character* target);
virtual void special()=0;
void set_attack(int atk){
atk = atk;
}
int get_attack(){
return atk;
}
void set_defense(int def){
def = def;
}
int get_defense(){
return def;
}
void set_hp(int hp){
hp = hp;
}
int get_hp(){
return hp;
}
};
class Player : public Character{
private:
Equip* currentEquipment;
public:
void equip(Equip* equipment) override{
set_attack(currentEquipment->get_attack_bonus());
set_defense(currentEquipment->get_defense_bonus());
}
void attack(character* target){
bool enemy; // logic to determine if target is enemy
if(enemy){
int updateHealth = get_hp()- get_attack();
// apply damage to target
set_hp(updateHealth);
}
}
};
C + + why am i getting the following errors in my

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