Answer Posted / vijaya
Sometimes a function is best shared among a number of
different classes. Such functions can be declared either as
member functions of one class or as global functions. In
either case they can be set to be friends of other classes,
by using a friend specifier in the class that is admitting
them. Such functions can use all attributes of the class
which names them as a friend, as if they were themselves
members of that class. A friend declaration is essentially a
prototype for a member function, but instead of requiring an
implementation with the name of that class
attached by the double colon syntax, a global function or
member function of another class provides the match.
| Is This Answer Correct ? | 90 Yes | 15 No |
Post New Answer View All Answers
Explain different sorting function in php?
Explain what are the three classes of errors that can occur in php?
What is the difference between die () and exit () in php?
What is php written in?
Tell me what is the difference between characters 34 and x34?
What is htaccess in php?
Maine 12th ke bad 2 years ka web designing ka course kiya hai. Php me achcha hu. Ek fresher ko is field me kitna mil sakta hai ?
Tell me how do you define a constant?
What is a php namespace?
Are php sessions secure?
How to send a cookie to the browser?
How to take a substring from a given string?
Why do we use interface in php?
what does this symbol mean in php?
The left association operator % is used in PHP for?