-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvolunteer.h
More file actions
29 lines (24 loc) · 862 Bytes
/
Copy pathvolunteer.h
File metadata and controls
29 lines (24 loc) · 862 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
//
// Created by User on 7/12/2023.
//
#ifndef TESTING_VOLUNTEER_H
#define TESTING_VOLUNTEER_H
#include <iostream>
#include <vector>
using namespace std;
class Volunteer {
private:
string name, email, departmentName, interests;
public:
Volunteer(string name = "", string email = "", string interests = "", string departmentName = "") : name{name}, email{email}, interests{interests}, departmentName{departmentName} {};
void setDepartment(string department) { this->departmentName = department; }
string getName() { return this->name; }
string getEmail() { return this->email; }
string getDepartmentName() { return this->departmentName; }
string getInterests() { return this->interests; }
string getVolunteer()
{
return this->name + "|" + this->email + "|" + this->interests;
}
};
#endif //TESTING_VOLUNTEER_H