From b9d7a831195cec75851c72f360a38bfd6fad2f0a Mon Sep 17 00:00:00 2001 From: Connor McDowell Date: Thu, 22 Feb 2024 18:51:38 -0800 Subject: overload op completed --- Project1/contact.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Project1/contact.cpp b/Project1/contact.cpp index 0cfa0e3..c6d670f 100644 --- a/Project1/contact.cpp +++ b/Project1/contact.cpp @@ -14,7 +14,13 @@ contact& contact::operator=(const contact& rhs) { if(this != &rhs) { - + _firstName = rhs._firstName; + _lastName = rhs._lastName; + _streetAddress = rhs._streetAddress; + _city = rhs._city; + _state = rhs._state; + _zip = rhs._zip; + _email = rhs._email; } return *this; } -- cgit v1.2.3