John C. answered 04/21/20
Tutor
4.9
(1,532)
BS and MS in Comp Sci, 34 years experience, 3 yrs CS tutoring
The presence of the keyword "const" at the end of the function definition indicates that the function cannot change any class data. The compiler will enforce this constraint.