+ 2
What is the use of protected members?
2 Answers
+ 3
Protected members are only accessible to the base class and the derived class no other class can access it.
for example, a father's bike can only be accessed by his son or daughter.
so bike is a protected member.
0
an example so clearly about real world Ravi Kumar