RAD Studio
ContentsIndex
PreviousUpNext
friend

Category 

C++-Specific Keywords 

Syntax  

friend <identifier>;

Description 

Use friend to declare a function or class with full access rights to the private and protected members of the class, without being a member of that class. The outside class has fill access to the class that declares that outside class a friend. 

In all other respects, the friend is a normal function in terms of scope, declarations, and definitions.

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!