I ask you to explain in detail why in this example code use the keyword const? After all, without it, everything works the same way.
#include<string> using std::string; class CommissionEmployee { public: CommissionEmployee(const string &, const string &, const string &, double =0.0, double = 0.0); void setFirstName(const string &); getFirstName() const; }
foo(const T &)orT foo() const? - HolyBlackCatgetFirstName()go? - AnT