Overloading the input operator and friend functions
Our implementation of the overloaded >> requires it to access private members of a Point (namely, its coordinates).
Normally, only member functions can do this.
Friend functions can do this too!
Previous slide
Back to first slide
View graphic version