Its about friend function, HOW IT BREAK/ VIOLETS ENCAPSULATION CONCEPT?. Internally at binary code level? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Its about friend function, HOW IT BREAK/ VIOLETS ENCAPSULATION CONCEPT?. Internally at binary code level?

I checked Google, some books but nothing is written about it.. all are saying it's friend function and this allows you to increase the encapsulation capability.. But nothing about what internally happens... 

27th Nov 2017, 7:20 AM
Bhushan Rane
Bhushan Rane - avatar
2 ответов
0
Tutorial Point has a nice explanation here: https://www.tutorialspoint.com/cplusplus/cpp_friend_functions.htm
27th Nov 2017, 7:28 AM
Sapphire
0
Hello, Thank you for your feedback I have checked about the specialty of friend function. friend function just skip the compiler defined rule, which are set on top of compiler. And whenever we use the friend function, it just skip the encapsulation and allow private access
21st Dec 2017, 6:15 PM
Bhushan Rane
Bhushan Rane - avatar