answersLogoWhite

0

disadvantage of friend functions is that they require an extra line

of code when you want dynamic binding. To get the effect of a virtual friend,

the friend function should call a hidden (usually protected:) virtual[20]

member function.

Read more: Demerits_of_friend_function

What else can I help you with?