Answer to Question #277757 in C++ for george

Question #277757

Explain friend function


1
Expert's answer
2021-12-10T00:36:39-0500

A friend function is one that is declared outside of a class yet has access to the class's private and protected members. In programming, there may be times when we wish two classes to share their members. Data members, class functions, and function templates are examples of these members.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog