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 do you mean by volatile and mutable keywords used in c++?

0 Answers  


Array base access faster or pointer base access is faster?

0 Answers  


What is the use of endl in c++?

0 Answers  


What do you mean by function and operator overloading in c++?

0 Answers  


What does std :: flush do?

0 Answers  






True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends

0 Answers  


What are the two types of comments?

0 Answers  


How many types of scopes are there in c++?

0 Answers  


Differentiate between a constructor and a method in C++.

0 Answers   Tech Mahindra,


Is c++ a software?

0 Answers  


How is c++ used in the real world?

0 Answers  


What is the difference between an external iterator and an internal iterator?

0 Answers  


Categories