+ 1

What's the main difference between protected and private members of the class?

In c++

13th Sep 2019, 11:27 AM
Patrick Makashini
Patrick Makashini - avatar
2 Answers
13th Sep 2019, 11:34 AM
Manual
Manual - avatar
+ 5
Protected members are accessible in child classes. Private members are not.
13th Sep 2019, 11:38 AM
Sonic
Sonic - avatar