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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -