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
Computer Science,
6 months ago
Science,
6 months ago
English,
6 months ago
Biology,
1 year ago
Math,
1 year ago