≡ Menu

C++ Friend Main Example

How to Use Friend Modifier in C++ with Example Code

You would consider someone as your friend, if you trust him/her and thereafter you would grant your friend some higher level of privilege. Some might say a friend of your friend is also your friend. But, as we will see that is not that case in C++. In C++, you should exactly state who you [...]

{ 5 comments }