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
how retrive the video file in php using video tag
Explain Traits in PHP?
What is $this in php?
What is the difference between characters 34 and x34?
How to register a variable in PHP session?
What are getters and setters php?
What is php and how do you use it?
Why are sessions used?
What is the use of preg_match in php?
What is the use of get and post method in php?
What are major variables in research?
Explain difference between urlencode and urldecode?
What is composer install?
What is the difference between $name and $$name?
How can you declare the array in php?