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...
2 Antworten
0
Tutorial Point has a nice explanation here:
https://www.tutorialspoint.com/cplusplus/cpp_friend_functions.htm
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