Use example class Point2D to illustrate how to write a non-member function named equal to compare two objects of type Point2D. Then write the same function as a friend function, illustrating that friend functions has access to private class data members.
Watch video C++ Classes, Introduction to non-member and friend functions online without registration, duration hours minute second in high quality. This video was added by user C Programming 03 November 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 647 once and liked it 10 people.