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 do you mean by variable?
How do you explain polymorphism?
How do you achieve polymorphism?
What is polymorphism explain?
What is the diamond problem in inheritance?
What is polymorphism and why is it important?
What are two types of polymorphism?
What is the use of oops?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
What is the real life example of polymorphism?
What is polymorphism oop?
What are functions in oop?
What is difference between multiple inheritance and multilevel inheritance?
What is methods in oop?
What are objects in oop?