Difference between friend function and member function in c++ with example
Added by Jennifer S.
Step 1
What is a function in C++? A function is a block of code that performs a specific task. It can take input, process it, and return output. Show more…
Show all steps
Your feedback will help us improve your experience
Aakash Goyal and 56 other Physics 101 Mechanics educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Explain the categories of user-defined functions in C++.
Chandra J.
What is Function Overloading? How we can implement more than one function in the program with the same function name? Use C++ program
Sarvesh S.
What are data members in c++?
Haricharan G.
Recommended Textbooks
University Physics with Modern Physics
Physics: Principles with Applications
Fundamentals of Physics
Watch the video solution with this free unlock.
EMAIL
PASSWORD