Course Solutions Uncategorized (Solved) : Please Use Given Files Answer Questions Also Assume Two Classes Defense Offense Derived Ba Q26218155 . . . .

(Solved) : Please Use Given Files Answer Questions Also Assume Two Classes Defense Offense Derived Ba Q26218155 . . . .

 

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

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post