Why is IsgameWon member a constant?

Why is the IsGameWon public member of the FBullCowGame class a constant? Being of type Bool, wouldn’t we need to change it at some point?

const at the end of a class function declaration i.e.
FBullCowGame::IsGameWon() const
means that the function doesn’t change any of the class’ members; in this case MyCurrentTry and MyMaxTries

Privacy & Terms