0
What the essence of having a "protected" type inside a class? is it different from private?
2 Réponses
+ 7
https://stackoverflow.com/a/224977
+ 3
I believe protected values and methods, can be inherited by derived classes .
While private is not inherited by the derived class
Here is an example
https://code.sololearn.com/cTHpbeg0MUr5/?ref=app