A function that could use the keyword const

A function that could use the keyword const is IsGameWon() because you only just check whether the word is right or wrong and return true or false without changing any of the member variables. I hope it makes sense.

I saw the video further and realised Ben said it too. Well, at least I tried.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms