Computer Science, asked by ndnidhias, 1 year ago

wt mean by Friend funtction in c++ ?Explain it?

Answers

Answered by maryjessicka
0
If a function is declared has friend in c++ then the function and its members can be accessed by any class in a program.
Answered by premalathanavin
0
A friend function is used for accessing the non-public members of a class. A class can allow non-member functions and other classes to access its own private data, by making them friends. Thus, a friend function is an ordinary function or a member of another class.
Similar questions