adspace


Differentiate between an inspector and a mutator ?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

daily Routine of father

1489


What is the latest version on c++?

1217


Can union be self referenced?

1275


How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

1172


What character terminates all character array strings a) b) . c) END

1403