In overloading stream insertion operator and stream extraction operator you should know about the left hand side object, for example we write cout<<”hello world”; now look at the left hand side object in this statement which is cout and this object is not the object of the class that you are developing , cout is … Read more