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?

Answers were Sorted based on User's Feedback



What is a friend function & its advantage?..

Answer / 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

What is a friend function & its advantage?..

Answer / devi

The above ans is also right.
->Friend function is the one that can access the private
data members of the same class and other class which it is
made as friend.
->The advantageous of friend function that function not called
by object of the class.
->That means without using object name and dot operator that call the friend function.It
can define private area and public area.
->The friend function define outside the class without using
the class name and scope resolution operator.

Is This Answer Correct ?    16 Yes 7 No

Post New Answer

More OOPS Interview Questions

What is difference between oop and pop?

0 Answers  


what is polymorphism?

4 Answers  


What is virtual destructor? Why?

3 Answers   Agile Software, College School Exams Tests, CSC,


What is oops in simple words?

0 Answers  


Which is the parameter that is added to every non-static member function when it is called?

3 Answers   Accenture,


what is abstract class ? when is used in real time ? give a exp

5 Answers  


write a programe to calculate the simple intrest and compund intrest using by function overlading

0 Answers  


2. Give the different notations for the class.\

0 Answers  


WHAT IS ABSTRUCT DATA TYPE ? PLEASE EXPLAIN IT.

4 Answers   HCL,


Generally, in all C++ programs, texts are in white colour. Can we change the colour of the text(either input or output or both)? If so, help me out.

1 Answers  


Why is abstraction used?

0 Answers  


What is destructor in oop?

0 Answers  


Categories