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

Why multiple inheritance is not possible?

608


write a programe to calculate the simple intrest and compund intrest using by function overlading

1676


What is the difference between encapsulation and polymorphism?

602


Why interface is used?

558


What is a class and object?

602






What is difference between abstraction and encapsulation?

596


Get me a number puzzle game-program

1698


Can we define a class within the interface?

564


class type to basic type conversion

1845


What is a class oop?

597


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

2057


How to call a non virtual function in the derived class by using base class pointer

5288


Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?

4248


What is polymorphism give a real life example?

569


Explain the advantages of inheritance.

680