0 votes
by (1.6k points)

1 Answer

0 votes
by (1.1k points)
selected by
Best answer
Yes, anything inside Private and Protected cannot be accessed by external functions. Even when inheritance they don't get inherited. So access specifiers help in achieving data hiding.
Welcome to CodersEditor Q&A, where you can ask questions and receive answers from other members of the community.