Quick Question: Does a Derived Class have access to private members of the base class?

Same thing with inheritance. When you inherit a class, does private/protected members also get derived and/or inherited?

Thanks!
http://www.learncpp.com/cpp-tutorial/115-inheritance-and-access-specifiers/

Basically, derived classes can only access protected and public members of the base class.
Last edited on
@ fg109,
Thanks for the link! It was very helpful :)
Topic archived. No new replies allowed.