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 gives the current position of the put pointer?
What are vectors used for in c++?
Is there any function that can skip certain number of characters present in the input stream?
What do you mean by “this” pointer?
What is runtime errors c++?
Explain deep copy and a shallow copy?
In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that
Array base access faster or pointer base access is faster?
Can we use clrscr in c++?
What are enumerations?
What is difference between c++ 11 and c++ 14?
Do we have to use initialization list in spite of the assignment in constructors?
what are Operators and explain with an example?
How do you find out if a linked-list has an end?
Is ca high or low level language?