Overloading Ostream Operator

  • + 0 comments
    ostream &operator<<(ostream &os,const Person &rhs){
        os << "first_name=" << rhs.get_first_name() << ",last_name=" << rhs.get_last_name();
        return os;
    }