Functions that are candidates for 'const'

In all honesty looking at all of the functions we’ve declared inside our class I don’t think any are good candidates for the function ‘const’. Here’s why; Reset, victory, valid guess functions are all based on values that change. Reset and Validguess functions are also based on inputs meaning making them a constant value would essentially break them. At least to my understanding.

I’m thinking the same, here. Only I really don’t know if there’s going to be something we put in ‘CheckGuessValidity’ that makes a difference to that. I’m also not clear on if a constant could be changed under a very specific condition or not. Those are both things which I doubt, though.

Privacy & Terms