diff options
| author | Connor McDowell <[email protected]> | 2024-02-22 17:15:30 -0800 |
|---|---|---|
| committer | Connor McDowell <[email protected]> | 2024-02-22 17:15:30 -0800 |
| commit | 0acf440edaa239078c308b16d14f0a6f7b79687d (patch) | |
| tree | b81d1b0dbc8fe99a4938b280973296ee79b0a3c2 /Project1/contact.h | |
| parent | add deadline (diff) | |
| download | in-class-exercise-13-connormcdowell275-0acf440edaa239078c308b16d14f0a6f7b79687d.tar.xz in-class-exercise-13-connormcdowell275-0acf440edaa239078c308b16d14f0a6f7b79687d.zip | |
add getters and setters
Diffstat (limited to 'Project1/contact.h')
| -rw-r--r-- | Project1/contact.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/Project1/contact.h b/Project1/contact.h new file mode 100644 index 0000000..d3b439e --- /dev/null +++ b/Project1/contact.h @@ -0,0 +1,43 @@ +#ifndef CONTACT_HELPER +#define CONTACT_HELPER + +class contact +{ +public: + contact() = default; + + char Get_firstName(); + char Set_firstName(); + + char Get_lastName(); + char Set_lastName(); + + char Get_streetAdress(); + char Set_streetAdress(); + + char Get_city(); + char Set_city(); + + char* Get_state(); + char* Set_state(); + + int Get_zip(); + int Set_zip(); + + char Get_email(); + char Set_email(); + + void print(); + +private: + char* _firstName{}; + char* _lastName{}; + char* _streetAddress{}; + char* _city{}; + char* _state{}; + int zip; + char* _email{}; + +}; + +#endif CONTACT_HELPER |