Challenge: Apply const to all your getters - My answer to the question

Putting ‘const’ after the functions (not in a certain class), I get the following error.
[error. a type qualifier is not allowed on a nonmember function]

So, I think candidates for the use of ‘const’ are,

    void Reset() const;
int GetMaxTries();
int GetCurrentTry();
bool IsGameWon();
bool CheckGameValidity(std::string);

Privacy & Terms