Pizzerie
Loading...
Searching...
No Matches
Customer.h
Go to the documentation of this file.
1
5
6#ifndef PROOP_CUSTOMER_H
7#define PROOP_CUSTOMER_H
8#include <string>
9using namespace std;
10
17class Customer {
18 string name;
19 string phone;
21
22public:
29 Customer(string n, string p, int l);
30
34 ~Customer();
35
40 void addPoints(int points);
41
46 string getDetails();
47};
48
49#endif //PROOP_CUSTOMER_H
string name
Jméno zákazníka.
Definition Customer.h:18
string phone
Telefonní číslo zákazníka.
Definition Customer.h:19
void addPoints(int points)
Přidá zákazníkovi věrnostní body.
Definition Customer.cpp:13
int loyaltyPoints
Aktuální počet věrnostních bodů
Definition Customer.h:20
~Customer()
Destruktor zákazníka.
Definition Customer.cpp:12
string getDetails()
Získá naformátované detaily o zákazníkovi.
Definition Customer.cpp:16
Customer(string n, string p, int l)
Konstruktor pro vytvoření nového zákazníka.
Definition Customer.cpp:7