write one condition for using a friend function
Answers
Answered by
1
Answer:
A friend function is not invoked using the class object as it is not in the scope of the class. ... It needs to make use of a class object and then access the members using the dot operator. A friend function can be a global function or a member of another class
Answered by
0
Answer:
A friend function is not invoked using the class object as it is not in the scope of the class. ... It needs to make use of a class object and then access the members using the dot operator. A friend function can be a global function or a member of another class
hope this helps....
Similar questions