When should you use friend in C

0 votes
I like the concept of the << >> operator overloading and adding as a buddy of those classes after reading the FAQ a little bit further. However, I'm not clear how this prevents encapsulation from being broken. When may these deviations still adhere to OOP's stringent guidelines?
Aug 25, 2022 in C++ by Nicholas
• 7,760 points

edited Mar 4 24 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