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

Should I learn c or c++ first?

0 Answers  


what are Operators and explain with an example?

0 Answers  


What is the need of a destructor?

0 Answers  


What is c++ in english?

0 Answers  


How would you stop a class from class from being derived or inherited?The constructer should not be Private,as object instantiation should be allowed.

15 Answers   Satyam,






What is the use of :: operator in c++?

0 Answers  


What are the advantages of c++?

0 Answers  


How is new() different from malloc()?

0 Answers  


What is general format for a prototype?

0 Answers  


What are proxy objects in c++?

0 Answers  


What is c++ best used for?

0 Answers  


How important is c++?

0 Answers  


Categories