-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpersonType.h
54 lines (46 loc) · 1.22 KB
/
personType.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/********************************************************************************************************************
* AUTHOR : Ngoc Dang Tran;
* STUDENT ID : 1197865;
* ASSIGNMENT A8: Inheritence
* CLASS : CS1B;
* SECTION : MW: 9:30am - 11:50am;
* DUE DATE : 03/01/2021;
********************************************************************************************************************/
#ifndef PERSONTYPE_H_
#define PERSONTYPE_H_
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
class personType
{
private:
string fName;
string lName;
string address;
double height;
string dOB;
char gender;
public:
personType(); //Default constructor
personType(string, string); //Constructor with parameters
personType(string, string ,string, double, string , char); //Constructor with parameters
~personType(); //Destructor
//Setters
void setfName(string);
void setlName(string);
void setAdd(string);
void setHeight(double);
void setDOB(string);
void setGender(char);
//Getters
string getfName() const;
string getlName() const;
string getAdd() const;
double getHeight() const;
string getDOB() const;
char getGender() const;
//Prints function
void print() const;
};
#endif /* PERSONTYPE_H_ */