Using “friend” for overloading of << operator.
1. Overloading with free function. Function not part of Class. Basic class accessed by Reference not to make Copy and as Const as we not gonna change it. Only public members of class accessable 2. Overloading with member function. Function is part of Class. Basic class accessed by Reference not to make Copy and as […]