-
Notifications
You must be signed in to change notification settings - Fork 0
/
profileTemplate.h
58 lines (49 loc) · 1.39 KB
/
profileTemplate.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
55
56
57
58
#ifndef profileTemplate_H
#define profileTemplate_H
#include <string>
using namespace std;
/*
Author: Tran Hong Nghiep
Contributor: Le Kim Bang, Nguyen Quang Minh
---
CLass "profileTemplate" - Status: Complete
This class specifies these members below to define personal profile
*/
class profileTemplate {
protected:
// Basic Personal Data of Profile
string phoneNumber,
firstName,
lastName,
fullName;
public:
profileTemplate();
/*
Temporary Constructor of profileTemplate
Default Definition
phoneNumber = ""
firstName = ""
lastName = ""
fullName = ""
*/
profileTemplate(string pNum, string fName, string lName);
/*
Constructor of profileTemplate to setup these menbers below
phoneNumber = pNum
firstName = fName
lastName = lName
Default Definition
1. If pNum is not follow the template, pNum = "" (Ex: 0909246357)
2. Value of fullName is assigned based on these cases below
If fName && lName == "" => fullName = ""
If fName && lName != "" => fullName = fName + lName
If only fName == "" => fullName = lName
If only lName == "" => fullName = fName
*/
void profileINFO();
// Function to display profile details
string get_profileINFO();
// Function to return fullName and phoneNumber
};
// Base Class of "Customer", "Driver"
#endif