What are the merits and demerits of using the friend function?
Answers
Answered by
0
Answer:
merits: 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. we cant do any run time ploymorphism concepts in those members.
Similar questions