Overloading Ostream Operator

  • + 0 comments

    The operator is usually implemented as a friend function of the class, because it needs access to private data members of the class. Its return type is typically ostream& so that multiple output operations can be chained together. 11x play