Please use the given files to answer these questions. Also,assume two more classes (Defense andOffense) were derived from the base classPlayer.
.
Given Files:
player.h
#ifndef PLAYER_H
#define PLAYER_H
#include <iostream>
#include <string>
using namespace std;
class Player{
private:
string name; // The player’s name, notice it’s private, Question 4- What does this mean you have to do?
protected: // Question 5 – Why does number have to beprivate.
int number; // The player’s number.
int minutes; // The number of minutes the player is in thegame.
public:
/*
* This is the constructor for the player class.
* @param The player’s name.
*/
Player(string name);
/*
* This is a mutator method, it sets the player’s number.
* @param The player’s number.
*/
void
PayPal Gateway not configured
PayPal Gateway not configured