Differentiate between an inspector and a mutator ?
Answer / Rajnikanth
An inspector is a function that retrieves or observes the values of an object's data members without changing them. These functions are often called 'getters' or 'accessors'. A mutator, on the other hand, modifies or changes the values of an object's data members. They are often called 'setters' or 'modifiers'.
| Is This Answer Correct ? | 0 Yes | 0 No |
When are exception objects created?
What is the difference between the functions memmove() and memcpy()?
Why c++ is so important?
How to reduce a final size of executable?
What is static function? Explain with an example
How would you call C functions from C++ and vice versa?
Explain what data encapsulation is in c++?
Can I learn c++ without c?
What is an operator in c++?
write a program to insert an element into an array
What are the types of STL containers?
What are the manipulators in c++?