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
Why use of template is better than a base class?
What is else syntax in c++?
Why is c++ so fast?
What is the difference between delegation and implemented-in-terms-of?
Are iterators pointers?
Can create new c++ operators?
Can you please explain the difference between overloading and overriding?
Why was c++ created?
Is java a c++?
What is a hash function c++?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
Is eclipse good for c++?
Difference between an inspector and a mutator
Write my own zero-argument manipulator that should work same as hex?
How can a struct in c++ differs from a struct in c?