 Friend functions allow alternative syntax to use objects, for instance codice_1 instead of codice_2, or codice_3 instead of codice_4.Friend functions have the same implications on encapsulation as methods.A similar concept is that of friend class.