Object Oriented Programming

1: Creating a class definition when one class is granting friendship to a function that is a member of another class requires first
A.
a forward declaration of the class that holds the member function being granted friendship
B.
a forward declaration of the class that is granting friendship
C.
definition of the class that contains the function that will be a friend
D.

definition of the class that is granting friendship.

 

Answer : B

Explanation :

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.