Computer Science, asked by atharvaghanekar250, 7 months ago

What is friend function? What are the
characteristics of friend function

Answers

Answered by sritarutvik
0

Explanation:

It can be invoked like a normal function without using the object. It cannot access the member names directly and has to use an object name and dot membership operator with the member name. It can be declared either in the private or the public part.

Answered by XxSaVaGeBaExX
2

Answer:

The function is not in the scope of the class to which it has been declared as a friend. It cannot be called using the object as it is not in the scope of that class. It can be invoked like a normal function without using the object.

Brainliest plz!!

Similar questions