Computer Science, asked by vipiinmavi351, 10 months ago

What are Advantages Of Friend Function In C++

Answers

Answered by pushpanandhinikumare
0

Answer:

                        This are the advantages of frd function in c++.......

The advantage of encapsulation and data hiding is that a non-member function of the class cannot access a member data of that class. Care must be taken using friend function because it breaks the natural encapsulation, which is one of the advantages of object-oriented programming.

Answered by princess744
0

Explanation:

The advantage of encapsulation and data hiding is that a non-member function of the class cannot access a member data of that class. Care must be taken using friend function because it breaks the natural encapsulation, which is one of the advantages of object-oriented programming.

Plz mark me brainliest

Similar questions