this is my current highscore.h file fix it please #pragma once #include using namespace std; class HighScore { private: string name; int score; public: HighScore(string name, int score) : name(name), …
this is my current highscore.h file fix it please #pragma once
#include
using namespace std;
class HighScore
{
private:
string name;
int score;
public:
HighScore(string name, int score) : name(name), score(score) {}
string getName() const
{
return name;
}
void setName(string name)
{
this->name = name;
}
int getScore() const
{
return score;
}
void setScore(int score)
{
this->score = score;
}
};
OR