Advertisement
yaramohamed1

person.h.

Dec 24th, 2013
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.70 KB | None | 0 0
  1. #pragma once
  2. #include<iostream>
  3. using namespace std;
  4. #include<string>
  5. #include <ctype.h>
  6. class Person
  7. {
  8. protected:
  9.     string first_name;
  10.     string last_name;
  11.     string address;
  12.     string phoneNo;
  13.     char gender;
  14.     int age;
  15.     string email;
  16.  
  17. public:
  18.     Person();
  19.     Person(string,string,int,string,string,string,char);
  20.     bool is_number(string &s);
  21.     void set_firstname(string);
  22.     string get_firstname();
  23.     void set_lastname(string);
  24.     string get_lastname();
  25.     void set_address(string);
  26.     string get_address();
  27.     void set_phoneNo(string);
  28.     string get_phoneNo();
  29.     void set_gender(char);
  30.     char get_gender();
  31.     void set_age(int);
  32.     int get_age();
  33.     void set_email(string);
  34.     string get_email();
  35.     ~Person();
  36. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement