Manas Ranjan Dash
What is accessor and mutator?
By Manas Ranjan Dash in ASP.NET on May 19 2010
  • Ravi B
    Jun, 2010 9

    An Accessors just returns value of one of the member variables . It is a member function that accesses the contents of the object but does not modify the objects.


    A Mutator just assign a new value to one of the member variable. It is a member function that can modify an object.
    Every non-const member function are mutator.

    • 0
  • Manas Ranjan Dash
    May, 2010 19

    An accessor is a method that provide info on object. They are genrally properties which have a get method.On the other side Mutators can modify an object's state. They are the set method in a properties.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS