Functions with Const

Most methods/functions in the class are candidates for the use of const, since they do not modify private values. Unless const includes to the inability to change the return value? This also applies to most functions in the main.cpp if they were transferred to the header file.

However, shouldn’t GetCurrentTry() be able to change the private value MyCurrentTry later?

Privacy & Terms