Question: Why does the insertion and extraction operators needed to be overloaded as friends for a class rather than member functions?
Why does the insertion and extraction operators needed to be overloaded as friends for a class rather than member functions?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
