diff options
| author | Asahel <[email protected]> | 2024-03-08 09:49:43 -0800 |
|---|---|---|
| committer | Asahel <[email protected]> | 2024-03-08 09:49:43 -0800 |
| commit | 4bb119fe552863021ba9ed9ec594fc66f2d51d8f (patch) | |
| tree | f17b1606fe6ca7a4c4f1548ee22dc6547c159364 /InclassExercise14/Contact.cpp | |
| parent | add deadline (diff) | |
| download | archived-in-class-exercise-14-asahellt-4bb119fe552863021ba9ed9ec594fc66f2d51d8f.tar.xz archived-in-class-exercise-14-asahellt-4bb119fe552863021ba9ed9ec594fc66f2d51d8f.zip | |
Implemented copy and move constructor
Diffstat (limited to 'InclassExercise14/Contact.cpp')
| -rw-r--r-- | InclassExercise14/Contact.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/InclassExercise14/Contact.cpp b/InclassExercise14/Contact.cpp new file mode 100644 index 0000000..fadde86 --- /dev/null +++ b/InclassExercise14/Contact.cpp @@ -0,0 +1,22 @@ +#include "Contact.h" + +class Contact { + char* _firstName{}; + char* _lastName{}; + char* _streetAddress{}; + char* _city{}; + char* _state{}; + int zip{}; + char* _email{}; + + Contact() = default; + + Contact() { + delete[] _firstName; + delete[] _lastName; + delete[] _streetAddress; + delete[] _city; + delete[] _state; + delete[] _email; + + }
\ No newline at end of file |