in C Plus Plus by
Q:

What is the role of protected access specifier?

1 Answer

0 votes
by

If a class member is protected then it is accessible in the inherited class. However, outside the both the private and protected members are not accessible.

Related questions

+2 votes
+1 vote
+2 votes
asked Jan 21, 2021 in C Plus Plus by SakshiSharma
0 votes
asked Jun 18, 2020 in C Plus Plus by Robindeniel
+2 votes
+2 votes
asked Jun 19, 2019 in C Plus Plus by kamalkhandelwal29
...