Answer Posted / cs thakur
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 ? | 9 Yes | 3 No |
Post New Answer View All Answers
Tell me what are the encryption techniques in php?
What is the difference between pop3 IMAP and MAPI?
Explain the ternary conditional operator in php?
What is the use of count() function in php?
What is php destruct?
Tell me what is the difference between characters 34 and x34?
Does php class need constructor?
What is difference between ksort() and usort() functions.
So if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1()?
What is Different between Joomla And Magento?
What are the features and advantages of object-oriented programming in php?
What is the use of $_server["php_self"] variable?
What is php glob?
How do you pass a variable by value in php?
What is difference between echo and print in php?