Computer Science - Object Oriented Programming Using C++ - Discussion


Functions that returns information about an object's state can be classified as ________

[A]. inspector functions
[B]. mutator functions
[C]. auxiliary functions
[D]. manager functions

Answer: Option A


No answer description available for this question.

Waqas said: (Dec 3, 2014)  
The get() functions are usually referred to as inspectors as that just retrieve the data values from the source.

Chetali said: (Nov 22, 2019)  
- An object's state is returned without modifying the object's abstract state by using a function called inspector. Invoking an inspector does not cause any noticeable change in the object's behavior of any of the functions of that object.

- A mutator, on the other hand, changes the state of an object which is noticeable by outsiders. It means, it changes the abstract state of the object.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.