Overloading Ostream Operator

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