Question: Determine the function definition below. If a is a private data member of class myClass, then the function getValue can update the variable a. For

Determine the function definition below. If a is a private data member of class myClass, then the function getValue can update the variable a.

For example: int myClass::getValue()

const {a++; //get accessor Return a;}

True or False?

Please try to explain because I want to know why

thanks

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!