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

Why do we use oop?

1164


Can you explain polymorphism?

1150


What is encapsulation in simple terms?

1096


What is methods in oop?

1031


State what is encapsulation and friend function?

1337


Can main method override?

1149


What is encapsulation selenium?

1073


What is abstraction in oops?

1089


What is debug class?what is trace class? What differences are between them? With examples.

2255


What is the fundamental idea of oop?

1188


What is polymorphism explain its types?

1213


what is the sylabus for priliminaries?

2222


What are the components of marker interface?

1103


What is overriding in oop?

1096


What polymorphism means?

1131