From RAD Studio
Jump to: navigation, search

Go Up to Keywords, Alphabetical Listing Index


C++ Specific Keywords


friend <identifier>;


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 full 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.