In the following function definition what does the final const refer to?
const Stock & Stock::topval(const Stock & s) const
The first const refers to this obect passed implicitly correct?
The second const refers to s passed explicitly correct?
Looking at it makes me think the first const refers to the return type and the last to the implicitly passed object.
Just a little confused help!