1.

To which of the following access specifiers are applicable?(a) Member data(b) Functions(c) Both Member data & Functions(d) Protected membersThis question was posed to me in quiz.My question is from Access Control topic in section Class Hierarchies, Library & Containers of C++

Answer»

Right answer is (c) Both Member DATA & Functions

To EXPLAIN I WOULD SAY: The access specifiers can be applicable to the member data and functions because they need to be accessed outside the block.



Discussion

No Comment Found

Related InterviewSolutions