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