20.4 Friend - syntax

Syntax 20.2: Friends
class ClassName
{
	. . .
	friend class ClassName;
	friend return_type function_name(parameter list);
}
Purpose: Allow other classes and functions access to private features of a class.

prev |top |next