return a const c++ code example Example: function return const int getValue() const { return value; }