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
Get step-by-step solutions from verified subject matter experts
