Question: what are the merits and demerits of friend function?
Answer: Provides additional functionality which is kept outside the class., Provides functions that need data which is not normally used by the class., Allows sharing private class information by a non member function.