aboutsummaryrefslogtreecommitdiff
path: root/Project1/contact.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Project1/contact.cpp')
-rw-r--r--Project1/contact.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/Project1/contact.cpp b/Project1/contact.cpp
index e4ba37e..95c26f6 100644
--- a/Project1/contact.cpp
+++ b/Project1/contact.cpp
@@ -31,6 +31,21 @@ contact::contact(contact&& move)
//also *this = std::move(move);
}
+contact& contact::operator=(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;
+}
+
void contact::Set_firstName(const char* firstName)
{