What do you know about friend class and friend function?
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 |
Is dev c++ free?
What is the difference between Char a[ ]=”string” and char *a=”String”
What are the implicit member functions of class?
Why preincrement operator is faster than postincrement?
What is iterator in c++?
Write a program to find the Factorial of a number
In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?
Are vectors faster than arrays?
Define a constructor - what it is and how it might be called (2 methods)?
what is importance of data sturture in a programming language?
22 Answers L&T, TCS, Wipro,
What is the identity function in c++? How is it useful?
What is class definition in c++ ?