Define the term friend FUNCTION.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter13: Overloading And Templates
Section: Chapter Questions
Problem 5SA
icon
Related questions
Question

Define the term friend FUNCTION.

Expert Solution
Friend Function –

A friend function is declared by the keyword friend. The friend function is not a member of a class but can access the private and the protected members of the class.

trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer