Answer:
Code is given below and output is attached:
Step-by-step explanation:
#include <iostream>
using namespace std;
class Player
{
string name;
double points;
public:
Player()
{
name = "";
points = 0;
}
Player(string userName, double userPoints)
{
name = userName;
points = userPoints;
}
void setName(string Name)
{
name = Name;
}
string getName()
{
return name;
}
void setPoints(double Points)
{
points = Points;
}
double getPoints()
{
return points;
}
};
int main()
{
Player stella;
cout<<stella.getName()<<endl;
cout<<stella.getPoints()<<endl;
stella.setName("Stella");
cout<<stella.getName()<<endl;
stella.setPoints(13.1);
cout<<stella.getPoints()<<endl;
Player hector("Hector",6.2);
cout<<hector.getName()<<endl;
cout<<hector.getPoints()<<endl;
return 0;
}