-
Notifications
You must be signed in to change notification settings - Fork 2
/
PersonalDetails.h
47 lines (43 loc) · 1.09 KB
/
PersonalDetails.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
#include <iostream>
#include <string>
using namespace std;
#ifndef PERSONAL_DETAILS_
#define PERSONAL_DETAILS_
class PersonalDetails
{
private:
// check practical design
string Full_name;
string Username;
string Password;
string Phone_number;
string Email;
string Secret_question;
string Secret_answer;
int Age;
int Annual_income;
public:
// default constructor
PersonalDetails();
// overidding default constructor that requires all details to create a profile of a person
PersonalDetails(string personalDetailsArray[10]);
// full name getter method
string getFullName();
// username getter method
string getUsername();
// password getter method
string getPassword();
// phone number getter method
string getPhoneNumber();
// email getter method
string getEmail();
// secret question getter method
string getSecretQuestion();
// secret answer getter method
string getSecretAnswer();
// age getter method
int getAge();
// annual income getter method
int getAnnualIncome();
};
#endif