MCQs > IT & Programming > C++ > What is the difference between a public and a private class member?

C++ MCQs

What is the difference between a public and a private class member?

Answer

Correct Answer: Public members can be accessed by any function. Private members can be accessed only by the same class's member functions and the friends of the class.

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