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
In php, how to redirect from one page to another page?
What is the difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?
What is the meaning of php?
What are the delimiters in php?
What is php regular expression?
Explain about require and include function?
What are constructor and destructor in PHP?
How can image properties be retrieved in php?
Does facebook use php framework?
How to download file in php?
What is mysql_fetch_row?
What is the meaning of xdebug?
Is php a programming language?
What are the special characters you need to escape in single-quoted stings?
Which is best framework for php?