RAD Studio |  |

friend

Category

C++-Specific Keywords

Syntax

Copy Code

    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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!