Question: what are the merits and demerits of using friend function?
Answer: we can able to access the other class members in our class if,we use friend keyword. we CAN access the members without inheriting the class. demerits: Maximum size of the memory will occupied by objects according to the size of friend Members.