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 can you tell if a number is even or odd without using any condition or loop?
Which is useful for method overloading?
Where do we use get and post?
What is the default time in seconds for which session data is considered valid?
What is printf in php?
Is php coding easy?
my english is not too good then what we apply for a php programer post
What is difference between strstr() and stristr() in PHP?
The left association operator % is used in PHP for?
Which array function checks if the particular key exists in the array?
How to create an empty array in php?
What is xss and csrf?
List data types in PHP?
How is the comparison of objects done in php?
What are php keywords?