What is a friend function & its advantage?



What is a friend function & its advantage?..

Answer / kishor khatri

A friend function is a non member function of a class, that
is declared as a friend using the keyword "friend" inside
the class. By declaring a function as a friend, all the
access permissions are given to the function. It is like
allowing access to ones personal belongings to a friend.

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More OOPS Interview Questions

string is a class or data type in java?

3 Answers  


Why is object oriented programming so hard?

0 Answers  


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.

1 Answers  


What does I oop mean?

0 Answers  


What is the types of inheritance?

0 Answers  






What is the point of oop?

0 Answers  


What is constructor in oop?

0 Answers  


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

0 Answers   IBM,


what is difference between objects and function

3 Answers  


WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND ENCAPSULATION? PLEASE EXPLAIN IT.

7 Answers   ETH,


i have to create a view in SQL as like in ORACLE DATA EXPRESS EDITION

2 Answers   CTS,


what is the technical or oop name of object?

1 Answers  


Categories