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
How to find the index of an element in an array php?
Tell me is it possible to submit a form with a dedicated button?
Explain what are some new features introduced in php7?
Explain the changes in php versions?
Do loops php?
Which operator is used to combine string values in php?
What is the most convenient hashing method to be used to hash passwords?
Can we learn php without html?
What type of operation is needed when passing values through a form or an url?
Which is the dependent variable?
What are include() and require() functions?
What are the advantages of stored procedures?
What are the different types of statements that are present in php?
How to set cookies in PHP?
Tell me what is the difference between unset() and unlink()?