Question: Here is the start of a class declaration: class foo { public: void x ( foo f ) ; void y ( const foo f
Here is the start of a class declaration:
class foo
public:
void foo ;
void const foo ;
void foo const;
Which of the three member functions can alter the PRIVATE member variables of the foo object that activ the function?
Only can alter the private member variables of the object that activates the function.
Two of the functions can alter the private member variables of the object that activates the function.
Only y can alter the private member variables of the object that activates the function.
Only can alter the private member variables of the object that activates the function.
All of the functions can alter the private member variables of the object that activates the function.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
