-
Notifications
You must be signed in to change notification settings - Fork 0
/
user.h
31 lines (28 loc) · 977 Bytes
/
user.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
#ifndef USER_H
#define USER_H
#include <string>
// Base Class
class User {
private:
std::string firstName_;
std::string lastName_;
std::string email_;
std::string password_;
public:
User();
User(const std::string& firstName, const std::string& lastName, const std::string& email, const std::string& password);
User(const User& other);
~User();
User& operator=(const User& other);
std::string getFirstName() const;
std::string getLastName() const;
std::string getFullName() const;
std::string getEmail() const;
std::string getPassword() const;
void setFirstName(const std::string& firstName);
void setLastName(const std::string& lastName);
void setFullName(const std::string& firstName, const std::string& lastName);
void setEmail(const std::string& email);
void setPassword(const std::string& password);
};
#endif