3,988 views
0 votes
0 votes

The friend functions are used in situations where:

(A) We want to have access to unrelated classes

(B) Dynamic binding is required

(C) Exchange of data between classes to take place

(D) None of the above

1 Answer

0 votes
0 votes

answer is a when we want to  exchange data between classes. a friend function, that is a "friend" of a given class, is a function that is given the same access as methods to private and protected data.

Related questions

2 votes
2 votes
1 answer
1
sh!va asked Aug 10, 2016
15,019 views
If class A is friend of class B and if class B is friend of class C, which of the following is true?a. Class C is friend of class Ab. Class A is friend of class Cc. Class...
2 votes
2 votes
1 answer
2
JeetRabari asked Nov 13, 2018
2,692 views
Find the limit of the given expression$\lim_{x\to\frac{\pi}{2}}\left ( \sec x-\frac{1}{1-\sin x} \right )$
0 votes
0 votes
0 answers
3