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 scope operator in c++?
Why is it necessary to use a reference in the argument to the copy constructor?
what is pre-processor in C++?
When does a 'this' pointer get created?
How we can differentiate between a pre and post increment operators during overloading?
Does c++ have string data type?
Which function cannot be overloaded c++?
Can we make any program in c++ without using any header file and what is the shortest program in c++.
What is size of string in c++?
What is the this pointer?
Write a program in C++ for Fibonacci series
What is the difference between reference and pointer?
Write about the various sections of the executable image?
What is the type of 'this' pointer?
What is polymorphism and its type in c++?