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
What are php magic quotes?
What are the final class and final method?
When to use self over $this?
How can we extract string "pcds.co.in" from a string "https://info@pcds.co.in" using regular expression of php? More on reg can you explain
What is the php function that removes the first element of the array and returns it?
What version of php do I have windows?
Why is overriding runtime?
Explain soundex() and metaphone().
What is $_ server request_method == post?
What is the use of get and post method in php?
What is the difference between == and === in php?
How to create reusable code in php?
Explain the difference between $message and $$message?
What is php destruct?
Why is facebook still using php?