diff options
Diffstat (limited to 'inclass-excersice13/inclass-excersice13/contact.cpp')
| -rw-r--r-- | inclass-excersice13/inclass-excersice13/contact.cpp | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/inclass-excersice13/inclass-excersice13/contact.cpp b/inclass-excersice13/inclass-excersice13/contact.cpp deleted file mode 100644 index 83298ca..0000000 --- a/inclass-excersice13/inclass-excersice13/contact.cpp +++ /dev/null @@ -1,85 +0,0 @@ -#include "contact.h" -#include <iostream> - -Contact::Contact() { } - - void Contact::SetAge(short age) { - _age = age; -} - - short Contact::GetAge() { - return _age; - } - - const char* Contact::Getfirstname() { - return _firstname; - } - - void Contact::Setfirstname(const char* firstname) { - _firstname = firstname; - } - - - const char* Contact::Getlastname() { - return _lastname; - } - - void Contact::Setlastname(const char* lastname) { - _lastname = lastname; - } - - - const char* Contact::GetStreetaddress() { - return _Streetaddress; - } - - void Contact::SetStreetaddress(const char* Streetaddress) { - _Streetaddress = Streetaddress; - } - - - const char* Contact::Getcity() { - return _city; - } - - void Contact::Setcity(const char* city) { - _city = city; - } - - - const char* Contact::Getstate() { - return _state; - } - - void Contact::Setstate(const char* state) { - _state = state; - } - - int Contact::Getzip(){ - return _zip; - } - - void Contact::Setzip(int zip) { - _zip = zip; - } - -const char* Contact::GetEmail() { - return _email; - } - - void Contact::SetEmail(const char* email) { - _email = email; - } - - void Contact::Print() { - std::cout << "First Name: " << _firstname << std::endl; - std::cout << "Last Name: " << _lastname << std::endl; - std::cout << "Age: " << _age << std::endl; - std::cout << "StreetAddress: " << _Streetaddress << std::endl; - std::cout << "City: " << _city << std::endl; - std::cout << "State: " << _state << std::endl; - std::cout << "Zip: " << _zip << std::endl; - std::cout << "Email: " << _email << std::endl; -} - - |