-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubscriber.h
More file actions
37 lines (31 loc) · 1005 Bytes
/
subscriber.h
File metadata and controls
37 lines (31 loc) · 1005 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
#ifndef SUBSCRIBER_H
#define SUBSCRIBER_H
#include<iostream>
using namespace std;
class Subscriber
{
private:
int id;
std::string name, address, email;
bool type;
unsigned long int phone;
public:
Subscriber();
Subscriber(int id,std::string name,bool type,std::string address,unsigned long int phone,std::string email);
void updateSubscriber(int id,std::string name,bool type,std::string address,unsigned long int phone,std::string email);
//========setters=======
Subscriber& setId(int ID);
Subscriber& setType(bool TYPE);
Subscriber& setName(std::string Name);
Subscriber& setAddress(std::string Address);
Subscriber& setPhone(unsigned long int Phone);
Subscriber& setEmail(std::string Email);
//========getters========
int getId() const;
bool getType() const;
std::string getName() const;
std::string getAddress() const;
unsigned long int getPhone() const;
std::string getEmail() const;
};
#endif // SUBSCRIBER_H