answersLogoWhite

0

Nothing stops a member function from changing any of the values in a class. By convention, an accessor function is used to give read only access to class data, but that does not mean that it is prohibited from doing so. It is a member function, after all, and it has all the rights of any member function of the class.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What is the difference between mutuator and accessor methods?

Mutator: Put something into the class (change something). By convention, has a name that starts with "set", for example, "getName". Accessor: Get something out of the class (find out the class's state). By convention, has a name that starts with "get", for example, "getName". For logical values, "is" is used instead, for example, "isActive".


What is a monotonic transformation and how does it impact the relationship between variables in a mathematical function?

A monotonic transformation is a mathematical function that preserves the order of values in a dataset. It does not change the relationship between variables in a mathematical function, but it can change the scale or shape of the function.


What are the domain and range of the function?

The domain of a function is the set of values for which the function is defined.The range is the set of possible results which you can get for the function.


How can you find the domain and range of a function?

The domain is a subset of the values for which the function is defined. The range is the set of values that the function takes as the argument of the function takes all the values in the domain.


What Excel function sums values and then divides by the number of values?

The AVERAGE function.


Is x equals y a function?

y = x This is a line and a function. Function values are y values.


What is the benefit of always writing slope as a function?

This will emphasize the 'rise over run' expression of slope. In other words, the change in y over the change in x. This show the run, or change in x values, even if the slope is a whole number. A slope of 3 becomes 3/1 showing the change in y-values to be 3 and the change in x-values to be 1.


The set of all values that a function will return as outputs is called the of the function?

The set of all values that a function will return as outputs is called the *range* of the function.


What set of all values that a function can take as is called domain of the function?

Actually, the set of all values that a function can take is referred to as the "range" of the function, not the domain. The domain of a function is the set of all possible input values (or independent variables) for which the function is defined. In contrast, the range consists of all output values that result from applying the function to its domain.


What are limits in maths?

Limits (or limiting values) are values that a function may approach (but not actually reach) as the argument of the function approaches some given value. The function is usually not defined for that particular value of the argument.


What is the difference between high and maxinum in Excel?

Maximum is the highest value in a range of values and can be got using the MAX function. There is no function called High in Excel.Maximum is the highest value in a range of values and can be got using the MAX function. There is no function called High in Excel.Maximum is the highest value in a range of values and can be got using the MAX function. There is no function called High in Excel.Maximum is the highest value in a range of values and can be got using the MAX function. There is no function called High in Excel.Maximum is the highest value in a range of values and can be got using the MAX function. There is no function called High in Excel.Maximum is the highest value in a range of values and can be got using the MAX function. There is no function called High in Excel.Maximum is the highest value in a range of values and can be got using the MAX function. There is no function called High in Excel.Maximum is the highest value in a range of values and can be got using the MAX function. There is no function called High in Excel.Maximum is the highest value in a range of values and can be got using the MAX function. There is no function called High in Excel.Maximum is the highest value in a range of values and can be got using the MAX function. There is no function called High in Excel.Maximum is the highest value in a range of values and can be got using the MAX function. There is no function called High in Excel.


The set of output values of a function or relation?

The set of output values of a function or relation is the range