#viral

Опубликовано: 31 Май 2026
на канале: Code OOps
831
31

#viral #video Overloading of insertion extraction operators in C++..#youtube insertion operator is used for output and extraction operator is used for input.
We must know the things before start overloading input/output operators in C++.
1) cout is an object of ostream class and cin is an object of istream class
2) These operators must be overloaded as a global function. And if we want to allow them to access private data members of the class, we must make them friend.