This is done by putting the functions prototype inside the


A nonmember function cannot directly access private members of a class unless the class grants it permission by declaring it to be a friend function. This is done by putting the function's prototype inside the class declaration and preceding it (but not its definition) by the keyword friend.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: This is done by putting the functions prototype inside the
Reference No:- TGS02584034

Now Priced at $10 (50% Discount)

Recommended (92%)

Rated (4.4/5)