-
Notifications
You must be signed in to change notification settings - Fork 2
/
PersonalDetails.cpp
64 lines (61 loc) · 1.37 KB
/
PersonalDetails.cpp
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
59
60
61
62
63
64
#include "PersonalDetails.h"
// default constructor
PersonalDetails::PersonalDetails(){};
// constructor
PersonalDetails::PersonalDetails(string personalDetailsArray[10])
{
Full_name = personalDetailsArray[0];
Phone_number = personalDetailsArray[1];
Email = personalDetailsArray[2];
Secret_question = personalDetailsArray[3];
Secret_answer = personalDetailsArray[4];
Age = stoi(personalDetailsArray[5]);
Annual_income = stoi(personalDetailsArray[6]);
Username = personalDetailsArray[7];
Password = personalDetailsArray[8];
};
// full name getter method
string PersonalDetails::getFullName()
{
return Full_name;
};
// username getter method
string PersonalDetails::getUsername()
{
return Username;
}
// password getter method
string PersonalDetails::getPassword()
{
return Password;
}
// phone number getter method
string PersonalDetails::getPhoneNumber()
{
return Phone_number;
}
// email getter method
string PersonalDetails::getEmail()
{
return Email;
}
// secret question getter method
string PersonalDetails::getSecretQuestion()
{
return Secret_question;
}
// secret answer getter method
string PersonalDetails::getSecretAnswer()
{
return Secret_answer;
}
// age getter method
int PersonalDetails::getAge()
{
return Age;
}
// annual income getter method
int PersonalDetails::getAnnualIncome()
{
return Annual_income;
}