Overloading Ostream Operator

  • + 0 comments

    Shouldn't the overloaded << operator function be declared as a friend of class Person, so that it can access the private data within a Person object?