1.

Write any two characteristics of friend function.

Answer»

The characteristics of friend function are:

  • The friend function should not be defined inside the class.
  • It can be declared inside a class under public, private or protected access specifier since it is a non member function and make no difference.
  • A friend function should be defined outside the class without prefix friend.


Discussion

No Comment Found