Merits and demerits of friend function

Showing Answers 1 - 2 of 2 Answers

Prabhu Kumar V a

  • Jun 14th, 2006


   we can able to access the other class members in our class if,we use friend keyword.

   we CAN access the members without inheriting the class.


  Maximum size of the memory will occupied by objects according to the size of friend Members.

  we cant do any run time ploymorphism concepts in those members.


  Was this answer useful?  Yes

yogesh anasane

  • Nov 21st, 2012

1) Sometimes a friend function allows a more obvious syntax for calling a function rather than what a member function can do.
2) Friend function is used to increase versatility of overload operator.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Answer Question

Click here to Login / Register your free account

Send   Reset


Related Answered Questions


Related Open Questions