wt mean by Friend funtction in c++ ?Explain it?
Answers
Answered by
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
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
Social Sciences,
7 months ago
English,
7 months ago
Accountancy,
7 months ago
Chemistry,
1 year ago
History,
1 year ago