Here is the start of a C class declaration class foo public-03560
Here is the start of a C++ class declaration:<br>class foo<br>{<br>public:<br>void x(foo f);<br>void y(const foo f);<br>void z(foo f) const;<br> __________ <br>Which of the three member functions can alter the PRIVATE member variables of the foo object that activates<br>the function?
This multiple choice question (MCQ) is related to the book/course vu cs301 Data Structures. It can also be found in vu cs301 Mid Term - Quiz No.5.
Here is the start of a C++ class declaration:
class foo
{
public:
void x(foo f);
void y(const foo f);
void z(foo f) const;
__________
Which of the three member functions can alter the PRIVATE member variables of the foo object that activates
the function?
class foo
{
public:
void x(foo f);
void y(const foo f);
void z(foo f) const;
__________
Which of the three member functions can alter the PRIVATE member variables of the foo object that activates
the function?
Only x 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 z 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