What is friend function in c++, Computer Engineering

As the name suggests, the function acts as a friend to a class. As a friend of a class, it can access its private & protected members. A friend function is not a member of the class. But it must be listed in the class definition.      

 

 

Posted Date: 4/8/2013 5:50:16 AM | Location : United States







Related Discussions:- What is friend function in c++, Assignment Help, Ask Question on What is friend function in c++, Get Answer, Expert's Help, What is friend function in c++ Discussions

Write discussion on What is friend function in c++
Your posts are moderated
Related Questions
Discuss about variables and assignmesnt statements

I/O devices need to be matched up to computer application. -  Computer-aided design (graph plotters, large screens, etc.) -  Virtual reality (data gloves, data goggles, etc.)

Q. Definition of Decision support system? Definition of DSS: A decision support system is a specific kind of information system which is an interactive system that supports in

Example Multi-layer ANN with Sigmoid Units: However we will concern ourselves here that with ANNs containing only one hidden layer and as this makes describing the backpropaga

Use the colon operation to create a vector x of numbers -10 through 10 in steps of 1. Use matrix operations to create a vector y where each element is 5 more than 2 times the corre

specifies a form field where user can enter large amounts of text. In most respects, works like an field. It can have a name as well as a def

ERP usage in real world

Q. Explain use of parallel sections construct? This illustration explains use of parallel sections construct. Three functions, fun1, fun2, and fun3, all can be executed simulta

What are the major functions of IO system?  i. Interface to the CPU and memory by the system bus.  ii. Interface to one or more IO devices by tailored data link.

Depth in Cutoff search: The depth is chosen in advance to certify in which the agent does not capture much more long to choose a move: however, if it has longer, well then we