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 |
Should I learn c or c++ first?
what are Operators and explain with an example?
What is the need of a destructor?
What is c++ in english?
How would you stop a class from class from being derived or inherited?The constructer should not be Private,as object instantiation should be allowed.
What is the use of :: operator in c++?
What are the advantages of c++?
How is new() different from malloc()?
What is general format for a prototype?
What are proxy objects in c++?
What is c++ best used for?
How important is c++?