MCQs > IT & Programming > C++ > You want the data member of a class to be accessed only by itself and by the class derived from it. Which access specifier will you give to the data member?

C++ MCQs

You want the data member of a class to be accessed only by itself and by
the class derived from it. Which access specifier will you give to the data
member?

Answer

Correct Answer: Protected

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