Friend Class

  • Can access private and protected member of a class.
  • Class specifies its friends, not the other way round.
  • Friendships are not inherited — Friends of parents are not friends of children.

Backlinks