What are Advantages Of Friend Function In C++
Answers
Answered by
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
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
Science,
5 months ago
Social Sciences,
5 months ago
India Languages,
10 months ago
Chemistry,
10 months ago
Math,
1 year ago
Chemistry,
1 year ago