What Is A Modifier In C++


  • 1 Jan, 2012

    A modifier, also called a modifying function is a member function thatchanges the value of at least one data member. In other words, anoperation that modifies the stateof an object. Modifiers are also known as ?mutators?. Example: The function mod is a modifier in the following code snippet: class test { int x,y; public: test() { x=0; y=0; } void mod() { x=10; y=15; } };

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.