What do you know about friend class and friend function?



What do you know about friend class and friend function?..

Answer / hrpynux@gmail.com

A friend function is a function that is specified outside a class but has the ability to access the class members' protected and private data. A friend can be a member's function, function template, or function, or a class or class template, in which case the entire class and all of its members are friends.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is the use of c++ programming language in real life?

0 Answers  


How to reduce a final size of executable?

3 Answers  


write a program to insert an element into an array

26 Answers   TCS,


Differentiate between the manipulator and setf( ) function?

0 Answers  


can output 5 students using one dimensional array

1 Answers   Intel,






Explain the benefits of proper inheritance.

0 Answers  


what is importance of data sturture in a programming language?

22 Answers   L&T, TCS, Wipro,


What is scope operator in c++?

0 Answers  


State two differences between C and C++.

0 Answers   Hexaware,


Explain explicit container.

0 Answers  


What is ostream in c++?

0 Answers  


Can a function take variable length arguments, if yes, how?

0 Answers  


Categories