Pizzerie
Toggle main menu visibility
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>
9
using namespace
std;
10
17
class
Customer
{
18
string
name
;
19
string
phone
;
20
int
loyaltyPoints
;
21
22
public
:
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
Customer::name
string name
Jméno zákazníka.
Definition
Customer.h:18
Customer::phone
string phone
Telefonní číslo zákazníka.
Definition
Customer.h:19
Customer::addPoints
void addPoints(int points)
Přidá zákazníkovi věrnostní body.
Definition
Customer.cpp:13
Customer::loyaltyPoints
int loyaltyPoints
Aktuální počet věrnostních bodů
Definition
Customer.h:20
Customer::~Customer
~Customer()
Destruktor zákazníka.
Definition
Customer.cpp:12
Customer::getDetails
string getDetails()
Získá naformátované detaily o zákazníkovi.
Definition
Customer.cpp:16
Customer::Customer
Customer(string n, string p, int l)
Konstruktor pro vytvoření nového zákazníka.
Definition
Customer.cpp:7
Customer.h
Generated by
1.17.0