Question.7
A developer marks a getter as const:
const
class Sensor { int value; public: int get_value() const { return value; } void set_value(int v) { value = v; } };
What does the const after get_value() mean?
get_value()
Select Answer
The return value is const
The function promises not to modify any member variables -- the compiler enforces this
The function can only be called on const objects
Both B and C