When do we need to use protected member access specifier? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

When do we need to use protected member access specifier?

Answer this it's urgent for competition

28th Aug 2020, 6:38 AM
Abdul Mannan
Abdul Mannan - avatar
1 Answer
+ 3
You can search on Google do some effort no-one have time to do your homework. ---------------------------------------------- Protected access modifier is similar to that of private access modifiers, the difference is that the class member declared as Protected are inaccessible outside the class but they can be accessed by any subclass(derived class) of that class.
28th Aug 2020, 6:45 AM
A S Raghuvanshi
A S Raghuvanshi - avatar