What is the difference between private and protected members of C classes

0 votes
What distinguishes C++ classes' private and protected members?

I know that variables and functions should be kept private if they aren't used outside of the class, yet MFC seems to favour protected when I look at my MFC code.

Which should I use and what is the difference?
Aug 26, 2022 in C++ by Nicholas
• 7,760 points

edited Mar 4 19 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP