-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClient.cpp
More file actions
42 lines (31 loc) · 849 Bytes
/
Client.cpp
File metadata and controls
42 lines (31 loc) · 849 Bytes
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
//
// Created by micha on 18/06/2023.
//
#include "Client.h"
Client::Client(const string &firstName, const string &lastName, const string &address, const char gender) : firstName(
firstName), lastName(lastName), address(address), gender(gender) {
}
string Client::getFirstName() const {
return firstName;
}
string Client::getLastName() const {
return lastName;
}
string Client::getAddress() const {
return address;
}
char Client::getGender() const {
return gender;
}
void Client::setFirstName(const string &firstName) {
this->firstName = firstName;
}
void Client::setLastName(const string &lastName) {
this->lastName = lastName;
}
void Client::setAddress(const string &address) {
this->address = address;
}
void Client::setGender(const char gender) {
this->gender = (char) toupper((int) gender);
}