aboutsummaryrefslogtreecommitdiff
path: root/Project1/contact.h
diff options
context:
space:
mode:
Diffstat (limited to 'Project1/contact.h')
-rw-r--r--Project1/contact.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/Project1/contact.h b/Project1/contact.h
index 7ffec87..ced5d5f 100644
--- a/Project1/contact.h
+++ b/Project1/contact.h
@@ -6,37 +6,37 @@ class contact
public:
contact() = default;
- char* Get_firstName();
+ const char* Get_firstName();
void Set_firstName(const char* firstName);
- char* Get_lastName();
+ const char* Get_lastName();
void Set_lastName(const char* lastName);
- char* Get_streetAddress();
+ const char* Get_streetAddress();
void Set_streetAddress(const char* streetAddress);
- char* Get_city();
+ const char* Get_city();
void Set_city(const char* city);
- char* Get_state();
+ const char* Get_state();
void Set_state(const char* state);
int Get_zip();
void Set_zip(int zip);
- char* Get_email();
+ const char* Get_email();
void Set_email(const char* email);
void print();
private:
- char* _firstName{ };
- char* _lastName{ };
- char* _streetAddress{ };
- char* _city{ };
- char* _state{ };
+ const char* _firstName{ };
+ const char* _lastName{ };
+ const char* _streetAddress{ };
+ const char* _city{ };
+ const char* _state{ };
int _zip;
- char* _email{ };
+ const char* _email{ };
};