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
Why do we use oop?
Can you explain polymorphism?
What is encapsulation in simple terms?
What is methods in oop?
State what is encapsulation and friend function?
Can main method override?
What is encapsulation selenium?
What is abstraction in oops?
What is debug class?what is trace class? What differences are between them? With examples.
What is the fundamental idea of oop?
What is polymorphism explain its types?
what is the sylabus for priliminaries?
What are the components of marker interface?
What is overriding in oop?
What polymorphism means?