diff options
| author | Connor McDowell <[email protected]> | 2024-02-22 17:44:01 -0800 |
|---|---|---|
| committer | Connor McDowell <[email protected]> | 2024-02-22 17:44:01 -0800 |
| commit | d6ffdd91a2e12a1d18003b20edf842c189d6eff9 (patch) | |
| tree | b0abff74b7dd6fba78429e30a8001d0639a303df /Project1/contact.h | |
| parent | working on functions (diff) | |
| download | in-class-exercise-13-connormcdowell275-d6ffdd91a2e12a1d18003b20edf842c189d6eff9.tar.xz in-class-exercise-13-connormcdowell275-d6ffdd91a2e12a1d18003b20edf842c189d6eff9.zip | |
contact.cpp set with setter and getter functs
Diffstat (limited to 'Project1/contact.h')
| -rw-r--r-- | Project1/contact.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Project1/contact.h b/Project1/contact.h index 47e8fd3..02d6b85 100644 --- a/Project1/contact.h +++ b/Project1/contact.h @@ -10,22 +10,22 @@ public: void Set_firstName(char firstName); char* Get_lastName(); - void Set_lastName(); + void Set_lastName(char lastName); - char* Get_streetAdress(); - void Set_streetAdress(); + char* Get_streetAddress(); + void Set_streetAddress(char streetAddress); char* Get_city(); - void Set_city(); + void Set_city(char city); char* Get_state(); - void Set_state(); + void Set_state(char state); - int* Get_zip(); - int Set_zip(); + int Get_zip(); + int Set_zip(int zip); char* Get_email(); - void Set_email(); + void Set_email(char email); void print(); @@ -35,7 +35,7 @@ private: char* _streetAddress{}; char* _city{}; char* _state{}; - int zip; + int _zip; char* _email{}; }; |