What does this expression mean float pay(float hoursWorked) const;
In C, if we return a const one, const float f ()... what does this mean by putting const in the last
What does this expression mean float pay(float hoursWorked) const;
In C, if we return a const one, const float f ()... what does this mean by putting const in the last
It is a declaration of non-static member function of some class
float pay(float hoursWorked) const;
The last qualifier const means that the object for which this function is called is considered as a constant object and this function may no change its data members except those that were declared with specifier mutable.