Saturday 21 September 2013

What is a 'friend' function

What is a 'friend' function?

When a function is declared to be a friend of a class, although this function is not a member of that class, it can access the private variables and functions of that class. 

No comments:

Post a Comment