MCQs > IT & Programming > C++ > Given an external function that needs access to private and protected members of a class, you would specify the function as:

C++ MCQs

Given an external function that needs access to private and protected members of a class, you would specify the function as:

Answer

Correct Answer: friend myClass myFunction(myClass);

Explanation:

Note: This Question is unanswered, help us to find answer for this one

C++ Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C++ Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it