Differentiate between an inspector and a mutator ?



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

Post New Answer

More C++ General Interview Questions

When are exception objects created?

1 Answers  


What is the difference between the functions memmove() and memcpy()?

1 Answers  


Why c++ is so important?

1 Answers  


How to reduce a final size of executable?

3 Answers  


What is static function? Explain with an example

1 Answers  


How would you call C functions from C++ and vice versa?

1 Answers   Genpact,


Explain what data encapsulation is in c++?

1 Answers  


Can I learn c++ without c?

1 Answers  


What is an operator in c++?

1 Answers  


write a program to insert an element into an array

26 Answers   TCS,


What are the types of STL containers?

4 Answers  


What are the manipulators in c++?

1 Answers  


Categories