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
What is the difference between explode () and split () functions in php?
What is mod_php?
What is the purpose of the php empty function?
what the new feature add in php 7.2?
What is user defined function in php?
What is difference between post and put in rest?
How to display your correct URL of the current web page?
how can i develop forum code? any one pleale help me on this question
Explain what is the difference between for and foreach?
What is default session time and path in php?
Where can I find php ini file?
What is artisan in php?
Is runtime polymorphism overriding?
What are the advantages of using php?
What is session in php why it is use?