Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the use of friend function?

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


Please Help Members By Posting Answers For Below Questions

Tell me what are the encryption techniques in php?

943


What is the difference between pop3 IMAP and MAPI?

1066


Explain the ternary conditional operator in php?

1093


What is the use of count() function in php?

973


What is php destruct?

967


Tell me what is the difference between characters 34 and x34?

977


Does php class need constructor?

948


What is difference between ksort() and usort() functions.

926


So if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1()?

1046


What is Different between Joomla And Magento?

2835


What are the features and advantages of object-oriented programming in php?

940


What is the use of $_server["php_self"] variable?

1010


What is php glob?

1006


How do you pass a variable by value in php?

1000


What is difference between echo and print in php?

927