+2 votes
in C Plus Plus by

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
+2 votes
asked Jan 20, 2021 in C Plus Plus by SakshiSharma
...