Computer Science, asked by skuazer83, 9 months ago

Write any five characters of friend function ​

Answers

Answered by TarunBardiya
0

Answer:

If a function is defined as a friend function in C++, then the protected and private data of a class can be accessed using the function.

By using the keyword friend compiler knows the given function is a friend function.

For accessing the data, the declaration of a friend function should be done inside the body of a class starting with the keyword friend.

Similar questions