0

What the essence of having a "protected" type inside a class? is it different from private?

https://code.sololearn.com/c8UGkaEJ21VN/?ref=app

30th Aug 2017, 11:00 AM
Jan Paul Echaveria
Jan Paul Echaveria - avatar
2 Réponses
+ 7
https://stackoverflow.com/a/224977
30th Aug 2017, 11:17 AM
jay
jay - avatar
+ 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
30th Aug 2017, 11:17 AM
Manual
Manual - avatar