Answers for "use of friend function"

1

use of friend function

We require friend functions whenever we have to 
access the private or protected members of a class. This is 
only the case when we do not want to use the objects of that 
class to access these private or protected members.
Posted by: Guest on August-23-2021

Code answers related to "use of friend function"

Browse Popular Code Answers by Language