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 a friend function & its advantage?

Answer Posted / supriya

friend function is the one that can access the private data
members of the class to which it is made as friend. this is
advantageous when any class needs any computation which
requires the private data members of two different classes.
in such case that class can be made as friend to both the
classes whose data it needs

Is This Answer Correct ?    27 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by variable?

977


How do you explain polymorphism?

1017


How do you achieve polymorphism?

1039


What is polymorphism explain?

1194


What is the diamond problem in inheritance?

1075


What is polymorphism and why is it important?

984


What are two types of polymorphism?

1017


What is the use of oops?

996


write a program to find 2 power of a 5digit number with out using big int and exponent ?

2326


What is the real life example of polymorphism?

1113


What is polymorphism oop?

1011


What are functions in oop?

999


What is difference between multiple inheritance and multilevel inheritance?

1108


What is methods in oop?

929


What are objects in oop?

1041