We were given a semantically and syntactically correct method that looks like this:
const Foo & bar( const Bim & bam ) const; We are supposed to explain what is meant by each of the three const calls. I am new to C++ and don't know what they mean. I understand (roughly) that the const at the end means that the method can only be called upon const variables and promises not to propagate changes. However, I do not understand the other two. Please correct me if I was wrong on the last one.