A function can only be declared a friend by a class itself.
Friend functions are not members of a class, they are associated with it.
Friend functions are members of a class.
It can have access to all members of the class, even private ones.
Your email address will not be published. Required fields are marked *
Report
Name
Email
Save my name and email in this browser for the next time I comment.
Comment *
Login with Facebook
Login with Google
Forgot your password?
Lost your password? Please enter your email address. You will receive mail with link to set new password.
Back to login
Saved in this browser. Nothing changes for anyone else.