Overloading Ostream Operator

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