Answer Posted / supriya
friend function is the one that can access the private data
members of the class to which it is made as friend. this is
advantageous when any class needs any computation which
requires the private data members of two different classes.
in such case that class can be made as friend to both the
classes whose data it needs
Is This Answer Correct ? | 27 Yes | 4 No |
Post New Answer View All Answers
what is difference between class template and template class?
What is abstract class in oop?
Whats oop mean?
Where You Can Use Interface in your Project
What does oop mean in snapchat?
What is the highest level of cohesion?
#include
What is encapsulation process?
What are the two different types of polymorphism?
What is pointer in oop?
write string class as your own class in java without using any built-in function
What is solid in oops?
Whats is abstraction in oops?
What is use of overloading?
What is class in oop with example?