42_CPP00/ex01/Contact.hpp
Camille Chauvet 67fbbf113b init
2023-05-17 16:41:46 +00:00

23 lines
493 B
C++

#include <string>
#include <iostream>
class Contact {
private:
std::string first_name;
std::string last_name;
std::string nickname;
std::string phone_number;
public:
Contact(std::string first_name, std::string last_name, std::string nickname, std::string phone_number);
Contact();
~Contact();
Contact &operator=(const Contact &contact);
bool isValid() const;
std::string to_string() const;
};
std::ostream& operator<<(std::ostream& os, const Contact& fixed);