What is friend function?

Answer Posted / nitish

If you are not the actual member of the class and want the
access over the functions involved in the class, then it can
be done through friend function.

An easy access to the data is provided through friend functions.

Is This Answer Correct ?    7 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?

938


What is the advantage of oop over procedural language?

621


What is oops in programming?

560


What is protected in oop?

598


Can static class have constructor?

580






What are main features of oop?

627


What is multilevel inheritance in oop?

549


write a C++ program for booking using constructor and destructor.

2040


What do you mean by abstraction?

605


What is encapsulation c#?

598


What is object in oops?

608


Explain the concepts involved in Object Oriented programming.

624


What is polymorphism give a real life example?

557


Why is polymorphism needed?

589


Can you explain polymorphism?

576