-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomer.h
More file actions
38 lines (30 loc) · 822 Bytes
/
Customer.h
File metadata and controls
38 lines (30 loc) · 822 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
#ifndef CUSTOMER_HPP
#define CUSTOMER_HPP
#include <string>
#include <vector>
using namespace std;
class Customer {
private:
string _customerID;
string _name;
string _phoneNumber;
string _email;
string _preferences;
string _address;
vector<string> _orderHistory;
public:
// Constructor
Customer(string id, string name, string phone, string email, string prefs, string address = "");
// Methods
void updateProfile(string updatedInfo);
void viewOrderHistory();
void addOrderHistory(string order);
// Getters
string getCustomerID() const;
string getAddress() const;
// Setters
void setAddress(const string& address);
// Display Details
void displayCustomerDetails() const;
};
#endif // CUSTOMER_HPP