class Player
{
public:
Player();
~Player();
void displayPlayer(); //Display the player
};
class Attacker : public Player
{
public:
Attacker();
~Attacker();
void checkPositionType();
};
Player* attacker = new Attacker
attacker->displayPlayer();
attacker->checkPositionType();