answersLogoWhite

0


Best Answer

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

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why can't the accessor member function change any of the values in a class in C plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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 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 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.


Is COUNTIF an example of a logical function in Excel?

Yes. It combines the logical function IF with the normal COUNT function, so that it counts values that meet a condition.Yes. It combines the logical function IF with the normal COUNT function, so that it counts values that meet a condition.Yes. It combines the logical function IF with the normal COUNT function, so that it counts values that meet a condition.Yes. It combines the logical function IF with the normal COUNT function, so that it counts values that meet a condition.Yes. It combines the logical function IF with the normal COUNT function, so that it counts values that meet a condition.Yes. It combines the logical function IF with the normal COUNT function, so that it counts values that meet a condition.Yes. It combines the logical function IF with the normal COUNT function, so that it counts values that meet a condition.Yes. It combines the logical function IF with the normal COUNT function, so that it counts values that meet a condition.Yes. It combines the logical function IF with the normal COUNT function, so that it counts values that meet a condition.Yes. It combines the logical function IF with the normal COUNT function, so that it counts values that meet a condition.Yes. It combines the logical function IF with the normal COUNT function, so that it counts values that meet a condition.


The set of output values of a function or relation?

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


A statistical function that adds a group of values and then divides the result by the number of values in the group?

Average function