From 1f030ff2fb456846e1f56bd744cd3dd56fe1d476 Mon Sep 17 00:00:00 2001 From: Connor McDowell Date: Thu, 22 Feb 2024 18:47:36 -0800 Subject: doing overload operator --- Project1/contact.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Project1/contact.cpp') diff --git a/Project1/contact.cpp b/Project1/contact.cpp index 884000d..0cfa0e3 100644 --- a/Project1/contact.cpp +++ b/Project1/contact.cpp @@ -5,6 +5,19 @@ using std::cin; using std::cout; using std::endl; +contact::contact(const contact& copy) +{ + *this = copy; +} + +contact& contact::operator=(const contact& rhs) +{ + if(this != &rhs) + { + + } + return *this; +} void contact::Set_firstName(const char* firstName) -- cgit v1.2.3