c++ - What does this expression mean float pay(float hoursWorked) const; -


this question has answer here:

what expression mean float pay(float hoursworked) const;

in c, if return const one, const float f ()... mean putting const in last

it declaration of non-static member function of class

float pay(float hoursworked) const; 

the last qualifier const means object function called considered constant object , function may no change data members except declared specifier mutable.


Comments