What do you know about friend class and friend function?
Answer Posted / 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 View All Answers
What is == in programming?
How do you differentiate between overloading the prefix and postfix increments?
What is meaning of in c++?
Write a code/algo to find the frequency of each element in an array?
Mention the ways in which parameterized can be invoked.
Why is main an int?
How does the copy constructor differ from the assignment operator (=)?
Which one is a preferred language C or C++? Why?
Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL
Do you need a main function in c++?
What is a multiset c++?
How can we read/write Structures from/to data files?
What is new in c++?
What is command line arguments in C++? What are its uses? Where we have to use this?
What is the cout in c++?